ParticleSystem.MainModule.cullingMode
Declaration
public ParticleSystemCullingMode cullingMode;Описание
Настройте, будет ли Particle System все еще симулироваться в каждом кадре, когда он вне экрана.
using UnityEngine; using System.Collections;
[RequireComponent(typeof(ParticleSystem))] public class ExampleClass : MonoBehaviour { private ParticleSystem ps;
void Start() { ps = GetComponent<ParticleSystem>();
var main = ps.main; main.cullingMode = ParticleSystemCullingMode.AlwaysSimulate; } }