How To Add a custom UI Toolkit GameObject
using UnityEditor;
using SoyWar.UIToolkit.Editor.GameObject;
public class CustomEditor : UnityEditor.Editor
{
[MenuItem("GameObject/UI Toolkit/Custom/Custom Element")]
public static void CreateGameObject(MenuCommand menuCommand)
{
// Create a GameObject with the CustomElementComponent attached to it
UIToolkitGameObjectEditor<CustomElementComponent, CustomElement>.CreateGameObject(menuCommand);
}
}