粒子系统噪声模块的脚本接口。
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Start() { ParticleSystem ps = GetComponent<ParticleSystem>(); var no = ps.noise; no.enabled = true; no.strength = 1.0f; no.quality = ParticleSystemNoiseQuality.High; } }