Version: 2022.2
언어: 한국어
Method group is Obsolete

ParticleSystem.simulationSpace

매뉴얼로 전환
Obsolete public ParticleSystemSimulationSpace simulationSpace ;

설명

This selects the space in which to simulate particles. It can be either world or local space.

using UnityEngine;

public class Example : MonoBehaviour { ParticleSystem part; bool useLocal = true;

void Start() { part = GetComponent<ParticleSystem> (); useLocal = (part.simulationSpace == ParticleSystemSimulationSpace.Local); }

void Update() { part.simulationSpace = (useLocal ? ParticleSystemSimulationSpace.Local : ParticleSystemSimulationSpace.World); }

void OnGUI() { useLocal = GUI.Toggle(new Rect(10, 60, 200, 30), useLocal, " Use Local Simulation Space"); } }