Update UXCreateHelper.cs
This commit is contained in:
parent
68daaa4a1d
commit
43e6a6ba83
@ -27,7 +27,7 @@ public class UXCreateHelper : Editor
|
||||
|
||||
return type.GetMethod(methodName, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static, null, types, null).Invoke(null, parameters);
|
||||
}
|
||||
#if UNITY_6000_3_OR_NEWER
|
||||
#if !UNITY_6000_3_OR_NEWER
|
||||
[MenuItem("GameObject/UI/UXImage")]
|
||||
#else
|
||||
[MenuItem("GameObject/UI (Canvas)/UXImage")]
|
||||
@ -43,7 +43,7 @@ public class UXCreateHelper : Editor
|
||||
image.material = AssetDatabase.LoadAssetAtPath<Material>(UXGUIConfig.UIDefaultMatPath);
|
||||
}
|
||||
|
||||
#if UNITY_6000_3_OR_NEWER
|
||||
#if !UNITY_6000_3_OR_NEWER
|
||||
[MenuItem("GameObject/UI/UXToggle")]
|
||||
#else
|
||||
[MenuItem("GameObject/UI (Canvas)/UXToggle")]
|
||||
@ -62,7 +62,7 @@ public class UXCreateHelper : Editor
|
||||
|
||||
#if TEXTMESHPRO_SUPPORT
|
||||
|
||||
#if UNITY_6000_3_OR_NEWER
|
||||
#if !UNITY_6000_3_OR_NEWER
|
||||
[MenuItem("GameObject/UI/UXTextMeshPro")]
|
||||
#else
|
||||
[MenuItem("GameObject/UI (Canvas)/UXTextMeshPro")]
|
||||
@ -77,7 +77,7 @@ public class UXCreateHelper : Editor
|
||||
obj.AddComponent<UXTextMeshPro>();
|
||||
}
|
||||
|
||||
#if UNITY_6000_3_OR_NEWER
|
||||
#if !UNITY_6000_3_OR_NEWER
|
||||
[MenuItem("GameObject/UI/UXButton")]
|
||||
#else
|
||||
[MenuItem("GameObject/UI (Canvas)/UXButton")]
|
||||
@ -92,7 +92,7 @@ public class UXCreateHelper : Editor
|
||||
obj.AddComponent<UXButton>();
|
||||
}
|
||||
|
||||
#if UNITY_6000_3_OR_NEWER
|
||||
#if !UNITY_6000_3_OR_NEWER
|
||||
[MenuItem("GameObject/UI/UXInput Field")]
|
||||
#else
|
||||
[MenuItem("GameObject/UI (Canvas)/UXInput Field")]
|
||||
@ -118,7 +118,7 @@ public class UXCreateHelper : Editor
|
||||
}
|
||||
#endif
|
||||
|
||||
#if UNITY_6000_3_OR_NEWER
|
||||
#if !UNITY_6000_3_OR_NEWER
|
||||
[MenuItem("GameObject/UI/UXScrollView")]
|
||||
#else
|
||||
[MenuItem("GameObject/UI (Canvas)/UXScrollView")]
|
||||
@ -135,7 +135,7 @@ public class UXCreateHelper : Editor
|
||||
Selection.activeGameObject = instance;
|
||||
}
|
||||
|
||||
#if UNITY_6000_3_OR_NEWER
|
||||
#if !UNITY_6000_3_OR_NEWER
|
||||
[MenuItem("GameObject/UI/UXTemplateWindow")]
|
||||
#else
|
||||
[MenuItem("GameObject/UI (Canvas)/UXTemplateWindow")]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user