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