fix: Prefab Mode in Play Mode is not supported bug #60

pull/87/head
mob-sakai 2019-08-27 11:39:01 +09:00
parent 6019799690
commit df3e829ca8
1 changed files with 4 additions and 0 deletions

View File

@ -12,7 +12,11 @@ namespace Coffee.UIExtensions
/// Soft maskable. /// Soft maskable.
/// Add this component to Graphic under SoftMask for smooth masking. /// Add this component to Graphic under SoftMask for smooth masking.
/// </summary> /// </summary>
#if UNITY_2018_3_OR_NEWER
[ExecuteAlways]
#else
[ExecuteInEditMode] [ExecuteInEditMode]
# endif
public class SoftMaskable : MonoBehaviour, IMaterialModifier, ICanvasRaycastFilter, ISerializationCallbackReceiver public class SoftMaskable : MonoBehaviour, IMaterialModifier, ICanvasRaycastFilter, ISerializationCallbackReceiver
{ {
//################################ //################################