This commit is contained in:
陈思海 2025-04-02 21:03:59 +08:00
parent 523494e0f2
commit 362f08f689
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: a9fd90c759c54481924b9549fa2d0330
timeCreated: 1743598816

View 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);
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: a33cf28b887a48c3970fca2a7720b876
timeCreated: 1743598823