访问粒子系统的噪点模块。
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;
}
}