diff --git a/Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs b/Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs index d5bd598..8eaaebe 100755 --- a/Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs +++ b/Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs @@ -255,6 +255,21 @@ namespace Coffee.UIExtensions base.OnDisable (); } +#if UNITY_EDITOR + /// + /// Reset to default values. + /// + protected override void Reset () + { + // Disable ParticleSystemRenderer on reset. + if (cachedParticleSystem) + { + cachedParticleSystem.GetComponent ().enabled = false; + } + base.Reset (); + } +#endif + /// /// Call to update the geometry of the Graphic onto the CanvasRenderer. ///