add UNITY EDITOR preproc

pull/413/head
soprachevAK 2020-08-19 01:48:53 +03:00
parent 8ea54def05
commit f5a6795e14
1 changed files with 2 additions and 1 deletions

View File

@ -125,6 +125,7 @@ namespace UnityEngine.UI.Extensions
} }
} }
#if UNITY_EDITOR
[CustomEditor(typeof(UISquircle))] [CustomEditor(typeof(UISquircle))]
public class UISquircleEditor : Editor public class UISquircleEditor : Editor
{ {
@ -135,6 +136,6 @@ namespace UnityEngine.UI.Extensions
GUILayout.Label("Vertex count: " + script.vert.Count().ToString()); GUILayout.Label("Vertex count: " + script.vert.Count().ToString());
} }
} }
#endif
} }
} }