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);
|
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")]
|
[MenuItem("GameObject/UI/UXImage")]
|
||||||
#else
|
#else
|
||||||
[MenuItem("GameObject/UI (Canvas)/UXImage")]
|
[MenuItem("GameObject/UI (Canvas)/UXImage")]
|
||||||
@ -43,7 +43,7 @@ public class UXCreateHelper : Editor
|
|||||||
image.material = AssetDatabase.LoadAssetAtPath<Material>(UXGUIConfig.UIDefaultMatPath);
|
image.material = AssetDatabase.LoadAssetAtPath<Material>(UXGUIConfig.UIDefaultMatPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if UNITY_6000_3_OR_NEWER
|
#if !UNITY_6000_3_OR_NEWER
|
||||||
[MenuItem("GameObject/UI/UXToggle")]
|
[MenuItem("GameObject/UI/UXToggle")]
|
||||||
#else
|
#else
|
||||||
[MenuItem("GameObject/UI (Canvas)/UXToggle")]
|
[MenuItem("GameObject/UI (Canvas)/UXToggle")]
|
||||||
@ -62,7 +62,7 @@ public class UXCreateHelper : Editor
|
|||||||
|
|
||||||
#if TEXTMESHPRO_SUPPORT
|
#if TEXTMESHPRO_SUPPORT
|
||||||
|
|
||||||
#if UNITY_6000_3_OR_NEWER
|
#if !UNITY_6000_3_OR_NEWER
|
||||||
[MenuItem("GameObject/UI/UXTextMeshPro")]
|
[MenuItem("GameObject/UI/UXTextMeshPro")]
|
||||||
#else
|
#else
|
||||||
[MenuItem("GameObject/UI (Canvas)/UXTextMeshPro")]
|
[MenuItem("GameObject/UI (Canvas)/UXTextMeshPro")]
|
||||||
@ -77,7 +77,7 @@ public class UXCreateHelper : Editor
|
|||||||
obj.AddComponent<UXTextMeshPro>();
|
obj.AddComponent<UXTextMeshPro>();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if UNITY_6000_3_OR_NEWER
|
#if !UNITY_6000_3_OR_NEWER
|
||||||
[MenuItem("GameObject/UI/UXButton")]
|
[MenuItem("GameObject/UI/UXButton")]
|
||||||
#else
|
#else
|
||||||
[MenuItem("GameObject/UI (Canvas)/UXButton")]
|
[MenuItem("GameObject/UI (Canvas)/UXButton")]
|
||||||
@ -92,7 +92,7 @@ public class UXCreateHelper : Editor
|
|||||||
obj.AddComponent<UXButton>();
|
obj.AddComponent<UXButton>();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if UNITY_6000_3_OR_NEWER
|
#if !UNITY_6000_3_OR_NEWER
|
||||||
[MenuItem("GameObject/UI/UXInput Field")]
|
[MenuItem("GameObject/UI/UXInput Field")]
|
||||||
#else
|
#else
|
||||||
[MenuItem("GameObject/UI (Canvas)/UXInput Field")]
|
[MenuItem("GameObject/UI (Canvas)/UXInput Field")]
|
||||||
@ -118,7 +118,7 @@ public class UXCreateHelper : Editor
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if UNITY_6000_3_OR_NEWER
|
#if !UNITY_6000_3_OR_NEWER
|
||||||
[MenuItem("GameObject/UI/UXScrollView")]
|
[MenuItem("GameObject/UI/UXScrollView")]
|
||||||
#else
|
#else
|
||||||
[MenuItem("GameObject/UI (Canvas)/UXScrollView")]
|
[MenuItem("GameObject/UI (Canvas)/UXScrollView")]
|
||||||
@ -135,7 +135,7 @@ public class UXCreateHelper : Editor
|
|||||||
Selection.activeGameObject = instance;
|
Selection.activeGameObject = instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if UNITY_6000_3_OR_NEWER
|
#if !UNITY_6000_3_OR_NEWER
|
||||||
[MenuItem("GameObject/UI/UXTemplateWindow")]
|
[MenuItem("GameObject/UI/UXTemplateWindow")]
|
||||||
#else
|
#else
|
||||||
[MenuItem("GameObject/UI (Canvas)/UXTemplateWindow")]
|
[MenuItem("GameObject/UI (Canvas)/UXTemplateWindow")]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user