ParticleEmitter.emit 发射

var emit : bool

Description描述

Should particles be automatically emitted each frame?

粒子应该每帧自动地发射?

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public IEnumerator Awake() {
		particleEmitter.emit = true;
		yield return new WaitForSeconds(3);
		particleEmitter.emit = false;
	}
}
// Emit particles for 3 seconds
// 3秒发射粒子

particleEmitter.emit = true;
yield WaitForSeconds(3);

// Then stop
// 然后停止

particleEmitter.emit = false;
Page last updated: 2011-1-23