Component.particleEmitter 粒子发射器

var particleEmitter : ParticleEmitter

Description描述

The ParticleEmitter attached to this GameObject (null if there is none attached).

ParticleEmitter附加到GameObject(游戏物体)(如无附加则为空)。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		particleEmitter.emit = true;
	}
}
particleEmitter.emit = true;
Page last updated: 2010-12-11