The IUIElementFactory
interface, provides methods for creating various types of UI elements in the WorldBuilder application using Unity’s UIElements system (UIToolkit). The interface includes methods to create a wide range of UI components such as buttons, labels, text fields, toggles, sliders, dropdowns, containers, scroll views, and windows. It also provides specialized methods for creating localized UI elements, handling paths, managing selections, and creating more complex structures like tables and menus. The factory methods support customization with different styles and event handlers, allowing for flexible UI creation. Additionally, the interface includes functionality for asset selection, color pickers, signal connectors, and tag management. This setup is intended to streamline and standardize the creation of UI elements within the WorldBuilder plugin ecosystem.