From df3e829ca81ca47d429ec3c8fbcf169fc1af5781 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Tue, 27 Aug 2019 11:39:01 +0900 Subject: [PATCH] fix: Prefab Mode in Play Mode is not supported bug #60 --- Scripts/SoftMaskable.cs | 4 ++++ 1 file changed, 4 insertions(+) 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 { //################################