From f5a6795e14011f45b2333f2365ddad96921d4f53 Mon Sep 17 00:00:00 2001 From: soprachevAK Date: Wed, 19 Aug 2020 01:48:53 +0300 Subject: [PATCH] add UNITY EDITOR preproc --- Runtime/Scripts/Primitives/UISquircle.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/Scripts/Primitives/UISquircle.cs b/Runtime/Scripts/Primitives/UISquircle.cs index 6b3b48d..9ebdef0 100644 --- a/Runtime/Scripts/Primitives/UISquircle.cs +++ b/Runtime/Scripts/Primitives/UISquircle.cs @@ -125,6 +125,7 @@ namespace UnityEngine.UI.Extensions } } +#if UNITY_EDITOR [CustomEditor(typeof(UISquircle))] public class UISquircleEditor : Editor { @@ -135,6 +136,6 @@ namespace UnityEngine.UI.Extensions GUILayout.Label("Vertex count: " + script.vert.Count().ToString()); } } - +#endif } } \ No newline at end of file