class in UnityEngine.Experimental.UIElements
Base class for objects that are part of the UIElements visual tree.
VisualElement contains several features that are common to all controls in UIElements, such as layout, styling and event handling. Several other classes derive from it to implement custom rendering and define behaviour for controls.
|The default focus index for newly created elements.
|Number of child elements in this object's contentContainer
|Should this element clip painting to its boundaries.
|child elements are added to this element, usually this
|Access to this element data watch interface.
|Returns true if the VisualElement is enabled in its own hierarchy.
|Returns true if the VisualElement is enabled locally.
|Used for view data persistence (ie. tree expanded states, scroll position, zoom level).
|Retrieves this VisualElement's IVisualElementScheduler
|Access to this element physical hierarchy
|Reference to the style object of this element.
|Access to this element physical hierarchy
|This property can be used to associate application-specific user data with this VisualElement.
|Add an element to this element's contentContainer
|Adds this stylesheet file to this element list of applied styles
|Checks if any of the ChangeTypes have been marked dirty.
|Brings this element to the end of its parent children list. The element will be visually in front of any overlapping sibling elements.
|Returns the elements from its contentContainer
|Remove all child elements from this element's contentContainer
|Returns true if the element is a direct child of this VisualElement
|Retrieves the child element at position
|Enables or disables the class with the given name.
|Searchs up the hierachy of this VisualElement and retrieves stored userData, if any is found.
|Finds the lowest commont ancestor between two VisualElements inside the VisualTree hierarchy
|Allows to iterate into this elements children
|Walks up the hierarchy, starting from this element's parent, and returns the first VisualElement of this type
|Walks up the hierarchy, starting from this element, and returns the first VisualElement of this type
|Combine this VisualElement's VisualElement.persistenceKey with those of its parents to create a more unique key for use with VisualElement.GetOrCreatePersistentData.
|Takes a reference to an existing persisted object and a key and returns the object either filled with the persisted state or as-is.
|Checks if this stylesheet file is in this element list of applied styles
|Retrieves the child index of the specified VisualElement.
|Insert an element into this element's contentContainer
|Called when the persistent data is accessible and/or when the data or persistence key have changed (VisualElement is properly parented).
|Overwrite object from the persistent data store.
|Places this element right before the sibling element in their parent children list. If the element and the sibling position overlap, the element will be visually behind of its sibling.
|Places this element right after the sibling element in their parent children list. If the element and the sibling position overlap, the element will be visually in front of its sibling.
|Removes this child from the hierarchy
|Remove the child element located at this position from this element's contentContainer
|Removes this element from its parent hierarchy
|Removes this stylesheet file from this element list of applied styles
|Write persistence data to file.
|Sends this element to the beginning of its parent children list. The element will be visually behind any overlapping sibling elements.
|Changes whether the current VisualElement is enabled or not. When disabled, a VisualElement does not receive most events.
|Reorders child elements from this VisualElement contentContainer.
|Toggles between adding and removing the given class name from the class list.
|Callback when the styles of an object have changed.
|Return true if the element can be focused.
|Return the focus controller for this element.
|An integer used to sort focusables in the focus ring. A negative value means that the element can not be focused.
|Handle an event, most often by executing the callbacks associated with the event.
|Return true if event handlers for the event propagation bubble up phase have been attached on this object.
|Return true if event handlers for the event propagation capture phase have been attached on this object.
|Add an event handler on the instance. If the handler has already been registered on the same phase (capture or bubbling), this will have no effect.
|Remove callback from the instance.
|Tell the element to release the focus.
|Attempt to give the focus to this element.