Version: 2023.1
言語: 日本語
public ParticleSystemCullingMode cullingMode ;

説明

Configure whether the Particle System will still be simulated each frame, when it is offscreen.

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; } }