SetPlaybackState(PlaybackState)
Use this method with the results of an earlier call to ParticleSystem.GetPlaybackState, in order to restore the Particle System to the state stored in the playbackState object.
阅读时间1 分钟最后更新于 21 天前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.ParticleSystemModule
public void SetPlaybackState(ParticleSystem.PlaybackState playbackState)
Parameters
The PlaybackState to apply to the Particle System.
Remarks
To fully restore a Particle System to a previous state, use this method along with ParticleSystem.SetParticles and ParticleSystem.SetTrails.
Additional Resources: ParticleSystem.GetPlaybackState, ParticleSystem.SetParticles, ParticleSystem.SetTrails.