From 4c2f6f812d98800eea0aaa03d5eb52a61fe196e4 Mon Sep 17 00:00:00 2001 From: Shawn Featherly Date: Tue, 31 Jan 2023 14:05:49 -0800 Subject: [PATCH] remove [ExecuteInEditMode] --- UiRoundedCorners/ImageWithIndependentRoundedCorners.cs | 1 - UiRoundedCorners/ImageWithRoundedCorners.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/UiRoundedCorners/ImageWithIndependentRoundedCorners.cs b/UiRoundedCorners/ImageWithIndependentRoundedCorners.cs index fc42bec..921b3de 100644 --- a/UiRoundedCorners/ImageWithIndependentRoundedCorners.cs +++ b/UiRoundedCorners/ImageWithIndependentRoundedCorners.cs @@ -2,7 +2,6 @@ using UnityEngine.UI; namespace Nobi.UiRoundedCorners { - [ExecuteInEditMode] [RequireComponent(typeof(RectTransform))] public class ImageWithIndependentRoundedCorners : MonoBehaviour { private static readonly int prop_halfSize = Shader.PropertyToID("_halfSize"); diff --git a/UiRoundedCorners/ImageWithRoundedCorners.cs b/UiRoundedCorners/ImageWithRoundedCorners.cs index fd0ab97..ebf0813 100644 --- a/UiRoundedCorners/ImageWithRoundedCorners.cs +++ b/UiRoundedCorners/ImageWithRoundedCorners.cs @@ -2,7 +2,6 @@ using UnityEngine.UI; namespace Nobi.UiRoundedCorners { - [ExecuteInEditMode] [RequireComponent(typeof(RectTransform))] public class ImageWithRoundedCorners : MonoBehaviour { private static readonly int Props = Shader.PropertyToID("_WidthHeightRadius");