diff --git a/Scripts/SoftMaskable.cs b/Scripts/SoftMaskable.cs index 2210763..76844ca 100755 --- a/Scripts/SoftMaskable.cs +++ b/Scripts/SoftMaskable.cs @@ -12,7 +12,11 @@ namespace Coffee.UIExtensions /// Soft maskable. /// Add this component to Graphic under SoftMask for smooth masking. /// +#if UNITY_2018_3_OR_NEWER + [ExecuteAlways] +#else [ExecuteInEditMode] +# endif public class SoftMaskable : MonoBehaviour, IMaterialModifier, ICanvasRaycastFilter, ISerializationCallbackReceiver { //################################