diff --git a/Assets/ParticleSystemControl/Runtime/ParticleSystemControlMixer.cs b/Assets/ParticleSystemControl/Runtime/ParticleSystemControlMixer.cs index 8e05781..9490811 100644 --- a/Assets/ParticleSystemControl/Runtime/ParticleSystemControlMixer.cs +++ b/Assets/ParticleSystemControl/Runtime/ParticleSystemControlMixer.cs @@ -191,6 +191,14 @@ public override void ProcessFrame(Playable playable, FrameData info, object play } } } + + public override void OnGraphStop(Playable playable) + { + if (particleSystem == null) return; + + if (Application.isPlaying) + particleSystem.Stop(); + } #endregion }