|
Window Framework v1.2.4
Window Framework for Unity UI Toolkit
|
Static Public Member Functions | |
| static VisualElement | GetDocumentRoot (this VisualElement ele) |
| Walks up the VisualTree to find the top most VisualElement of the panel that the given element belongs to. | |
| static VisualElement | SlotSimulator (int slotCount) |
| Creates a container with a given number of 'Slots' to simulate a grid layout. | |
|
static |
| ele | The Visual Element to use as a stating point |
| ArgumentNullException | Thrown if the given element is null |
// Get the root element of the panel that contains the given element
|
static |
| slotCount | Number of 'Slots' to create in the grid |
// Create a container with 10 slots to simulate a 5x5 grid layout