diff --git a/Scripts/Effects/UIParticleSystem.cs b/Scripts/Effects/UIParticleSystem.cs index 30a9a85..c448cce 100644 --- a/Scripts/Effects/UIParticleSystem.cs +++ b/Scripts/Effects/UIParticleSystem.cs @@ -371,6 +371,12 @@ namespace UnityEngine.UI.Extensions pSystem = null; Initialize(); } + + void OnDestroy() + { + currentMaterial = null; + currentTexture = null; + } } #endif } \ No newline at end of file