ParticleEmitter.useWorldSpace 使用世界坐标

var useWorldSpace : bool

Description描述

If enabled, the particles don't move when the emitter moves. If false, when you move the emitter, the particles follow it around.

如果是开启,当发射器移动时粒子不会移动。如果不是,当你移动发射器时,粒子随着它移动。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		particleEmitter.useWorldSpace = true;
	}
}
particleEmitter.useWorldSpace = true;
Page last updated: 2011-1-23