var particleEmitter : ParticleEmitter
Description描述
The ParticleEmitter attached to this GameObject (Read Only). (null if there is none attached)
附属于这个游戏物体上的粒子发射器(只读)。(如果没有则为空)
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public GameObject other;
public void Awake() {
other.particleEmitter.emit = true;
}
}
var other : GameObject;
other.particleEmitter.emit = true;