diff --git a/Packages/UIParticle/Scripts/UIParticle.cs b/Packages/UIParticle/Scripts/UIParticle.cs index 53b5f03..ca82029 100755 --- a/Packages/UIParticle/Scripts/UIParticle.cs +++ b/Packages/UIParticle/Scripts/UIParticle.cs @@ -15,7 +15,10 @@ namespace Coffee.UIExtensions [ExecuteInEditMode] [RequireComponent(typeof(RectTransform))] [RequireComponent(typeof(CanvasRenderer))] - public class UIParticle : MaskableGraphic, ISerializationCallbackReceiver + public class UIParticle : MaskableGraphic +#if UNITY_EDITOR + , ISerializationCallbackReceiver +#endif { [HideInInspector] [SerializeField] bool m_IsTrail = false;