### UIElements Templates Source: https://docs.unity3d.com/6000.2/Documentation/Manual/index.html/6000.2/Documentation/Manual/UIE-ElementRef This section describes template elements used for referencing and instantiating other UXML templates. ```APIDOC ## UIElements Templates This section describes template elements used for referencing and instantiating other UXML templates. ### Template Elements | Element | Description | Namespace | Permitted Child Elements | Attributes | |------------|--------------------------------------------------------------------------|----------------------|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------| | `Template` | A reference to another UXML template that can be instantiated using the `Instance` element. | `UnityEngine.UIElements` | None | `name`: A unique string identifier for this element
`path`: The path of the UXML file to load | | `Instance` | Instance of a `Template` | `UnityEngine.UIElements` | None | `template`: The `name` of the `Template` to instantiate | ``` -------------------------------- ### UIElements Standard Controls Source: https://docs.unity3d.com/6000.2/Documentation/Manual/index.html/6000.2/Documentation/Manual/UIE-ElementRef This section details standard UIElements controls that can be used in UXML and C#. ```APIDOC ## UIElements Standard Controls This section details standard UIElements controls that can be used in UXML and C#. ### Controls | Name | Bindable | Default Value Type | Namespace | C# Class | |----------------------|----------|----------------------------|----------------------|------------------------------| | `TemplateContainer` | Yes | | `UnityEngine.UIElements` | `UnityEngine.UIElements.TemplateContainer` | | `TextElement` | Yes | `string` | `UnityEngine.UIElements` | `UnityEngine.UIElements.TextElement` | | `TextField` | Yes | `string` | `UnityEngine.UIElements` | `UnityEngine.UIElements.TextField` | | `Toggle` | Yes | `boolean` | `UnityEngine.UIElements` | `UnityEngine.UIElements.Toggle` | | `ToggleButtonGroup` | Yes | `UnityEngine.UIElements.ToggleButtonGroupState` | `UnityEngine.UIElements` | `UnityEngine.UIElements.ToggleButtonGroup` | | `Toolbar` | | | `UnityEditor.UIElements` | `UnityEditor.UIElements.Toolbar` | | `ToolbarBreadcrumbs` | | | `UnityEditor.UIElements` | `UnityEditor.UIElements.ToolbarBreadcrumbs` | | `ToolbarButton` | Yes | | `UnityEditor.UIElements` | `UnityEditor.UIElements.ToolbarButton` | | `ToolbarMenu` | Yes | | `UnityEditor.UIElements` | `UnityEditor.UIElements.ToolbarMenu` | | `ToolbarPopupSearchField` | | `string` | `UnityEditor.UIElements` | `UnityEditor.UIElements.ToolbarPopupSearchField` | | `ToolbarSearchField` | | `string` | `UnityEditor.UIElements` | `UnityEditor.UIElements.ToolbarSearchField` | | `ToolbarSpacer` | | | `UnityEditor.UIElements` | `UnityEditor.UIElements.ToolbarSpacer` | | `ToolbarToggle` | Yes | `boolean` | `UnityEditor.UIElements` | `UnityEditor.UIElements.ToolbarToggle` | | `TreeView` | Yes | | `UnityEngine.UIElements` | `UnityEngine.UIElements.TreeView` | | `TwoPaneSplitView` | | | `UnityEngine.UIElements` | `UnityEngine.UIElements.TwoPaneSplitView` | | `UnsignedIntegerField` | Yes | `System.UInt32` | `UnityEngine.UIElements` | `UnityEngine.UIElements.UnsignedIntegerField` | | `UnsignedLongField` | Yes | `System.UInt64` | `UnityEngine.UIElements` | `UnityEngine.UIElements.UnsignedLongField` | | `Vector2Field` | Yes | `UnityEngine.Vector2` | `UnityEngine.UIElements` | `UnityEngine.UIElements.Vector2Field` | | `Vector2IntField` | Yes | `UnityEngine.Vector2Int` | `UnityEngine.UIElements` | `UnityEngine.UIElements.Vector2IntField` | | `Vector3Field` | Yes | `UnityEngine.Vector3` | `UnityEngine.UIElements` | `UnityEngine.UIElements.Vector3Field` | | `Vector3IntField` | Yes | `UnityEngine.Vector3Int` | `UnityEngine.UIElements` | `UnityEngine.UIElements.Vector3IntField` | | `Vector4Field` | Yes | `UnityEngine.Vector4` | `UnityEngine.UIElements` | `UnityEngine.UIElements.Vector4Field` | ``` -------------------------------- ### UI Toolkit Built-in Controls Reference Source: https://docs.unity3d.com/6000.2/Documentation/Manual/index.html/6000.2/Documentation/Manual/UIE-ElementRef This section provides a comprehensive reference for all built-in controls available in Unity's UI Toolkit. It details each control's bindable status, the data type it handles, its namespace, and the corresponding C# class for implementation. ```APIDOC ## UI Toolkit Built-in Controls Reference ### Description Provides a detailed list of all UI Toolkit's built-in controls, including their properties and C# class mappings. ### Endpoint N/A (Reference Table) ### Parameters N/A ### Request Example N/A ### Response #### Success Response (200) - **Element** (string) - The name of the UI control. - **Bindable** (boolean) - Indicates if the control supports data binding. - **Data type** (string) - The data type the control is designed to handle. - **Namespace** (string) - The C# namespace for the control. - **C# class** (string) - The C# class name for the control. #### Response Example ```json { "controls": [ { "Element": "BoundsField", "Bindable": true, "Data type": "UnityEngine.Bounds", "Namespace": "UnityEngine.UIElements", "C# class": "UnityEngine.UIElements.BoundsField" }, { "Element": "Box", "Bindable": false, "Data type": null, "Namespace": "UnityEngine.UIElements", "C# class": "UnityEngine.UIElements.Box" } // ... other controls ] } ``` ``` -------------------------------- ### UIElements C#-Only Controls Source: https://docs.unity3d.com/6000.2/Documentation/Manual/index.html/6000.2/Documentation/Manual/UIE-ElementRef This section lists controls that are exclusively available in C# and do not have a UXML representation. ```APIDOC ## UIElements C#-Only Controls The following table lists the controls that are only available in C# and do not have a UXML representation. ### Controls | Name | Bindable | Namespace | C# Class | |----------------------|----------|----------------------|------------------------------| | `GenericDropdownMenu`| No | `UnityEngine.UIElements` | `UnityEngine.UIElements.GenericDropdownMenu` | ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.