修改
This commit is contained in:
parent
523494e0f2
commit
362f08f689
3
Editor/MenuExtension.meta
Normal file
3
Editor/MenuExtension.meta
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a9fd90c759c54481924b9549fa2d0330
|
||||||
|
timeCreated: 1743598816
|
17
Editor/MenuExtension/MenuExtension.cs
Normal file
17
Editor/MenuExtension/MenuExtension.cs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
using UnityEditor;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
namespace AlicizaX.UI.Extension.Editor
|
||||||
|
{
|
||||||
|
internal static class MenuExtension
|
||||||
|
{
|
||||||
|
[MenuItem("GameObject/UI/UXTextMeshPro", false, -1)]
|
||||||
|
static void CreateUXTextMeshProUX()
|
||||||
|
{
|
||||||
|
GameObject selectionObject = Selection.activeGameObject;
|
||||||
|
var gameObject = new GameObject("UXTextMeshPro", typeof(UXTextMeshPro));
|
||||||
|
gameObject.transform.SetParent(selectionObject.transform);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
3
Editor/MenuExtension/MenuExtension.cs.meta
Normal file
3
Editor/MenuExtension/MenuExtension.cs.meta
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a33cf28b887a48c3970fca2a7720b876
|
||||||
|
timeCreated: 1743598823
|
Loading…
Reference in New Issue
Block a user