diff --git a/Scripts/UIParticle.cs b/Scripts/UIParticle.cs index 21d8e59..44fb460 100755 --- a/Scripts/UIParticle.cs +++ b/Scripts/UIParticle.cs @@ -480,6 +480,7 @@ namespace Coffee.UIExtensions private void InitializeIfNeeded() { + if (!this) return; if (enabled && m_IsTrail) { UnityEngine.Debug.LogWarningFormat(this, "[UIParticle] The UIParticle component should be removed: {0}\nReason: UIParticle for trails is no longer needed.", name);