UnityEngine.UIElementsModule Event sent after an element is added to an element that is a descendent of a panel. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Event sent immediately after an element has lost focus. Capturable, does not bubbles, non-cancellable. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Interface for classes capable of having callbacks to handle events. Handle an event, most often by executing the callbacks associated with the event. The event to handle. Return true if event handlers for the event propagation bubble up phase have been attached on this object. True if object has event handlers for the bubble up phase. Return true if event handlers for the event propagation capture phase have been attached on this object. True if object has event handlers for the capture phase. Called when the element loses the capture. Will be removed in a future version. 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. The event handler to add. By default the callback will be called during the bubbling phase. Pass Capture.Capture to have the callback called during the capture phase instead. Data to pass to the callback. 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. The event handler to add. By default the callback will be called during the bubbling phase. Pass Capture.Capture to have the callback called during the capture phase instead. Data to pass to the callback. Remove callback from the instance. The callback to remove. Select wether the callback should be removed from the capture or the bubbling phase. Remove callback from the instance. The callback to remove. Select wether the callback should be removed from the capture or the bubbling phase. Used to specify the phases where an event handler should be executed. The event handler should be executed during the capture and the target phases. The event handler should be executed during the target and bubble up phases. Enum which describes the various types of changes that can occur on a VisualElement. All change types have been flagged. Persistence key or parent has changed on the current VisualElement. Persistence key or parent has changed on some child of the current VisualElement. This class is used during UXML template instantiation. Event sent just before an element is detach from its parent, if the parent is the descendant of a panel. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. The base class for all UIElements events. Returns whether this event type bubbles up in the event propagation path. Return whether this event is sent down the event propagation path during the capture phase. The current target of the event. The current target is the element in the propagation path for which event handlers are currently being executed. Return whether the event is currently being dispatched to visual element. An event can not be redispatched while being dispatched. If you need to recursively redispatch an event, you should use a copy. The IMGUIEvent at the source of this event. This can be null as not all events are generated by IMGUI. Return true if the default actions should not be executed for this event. Return true if StopImmediatePropagation() has been called for this event. Return true if StopPropagation() has been called for this event. The current propagation phase. The target for this event. The is the visual element that received the event. Unlike currentTarget, target does not change when the event is sent to elements along the propagation path. The time at which the event was created. Flags to describe the characteristics of an event. Event will bubble up the propagation path (i.e. from the target parent up to the visual tree root). Execution of default behavior for this event can be cancelled. Event will be sent down the propagation path during the capture phase (i.e. from the visual tree root down to the target parent). Empty value. Get the type id for this event instance. The type ID. Reset the event members to their initial value. Call this function to prevent the execution of the default actions for this event. Register an event class to the event type system. The type ID. Immediately stop the propagation of this event. The event will not be sent to any further event handlers on the current target or on any other element in the propagation path. Stop the propagation of this event. The event will not be sent to any further element in the propagation path. Further event handlers on the current target will be executed. Generic base class for events, implementing event pooling and automatic registration to the event type system. Get the type id for this event instance. The type ID. Get an event from the event pool. Use this function instead of newing events. Events obtained from this function should be released back to the pool using ReleaseEvent(). An event. Release an event obtained from GetPooled(). The event to release. Get the type id for this event instance. The event instance type id. Base class for objects that can get the focus. 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. Tell the element to release the focus. Attempt to give the focus to this element. Base class for defining in which direction the focus moves in a focus ring. Last value for the direction defined by this class. The null direction. This is usually used when the focus stays on the same element. Focus came from an unspecified direction, for example after a mouse down. The underlying integer value for this direction. Class in charge of managing the focus inside a Panel. The currently focused element. Constructor. Ask the controller to change the focus according to the event. The focus controller will use its focus ring to choose the next element to be focused. Event sent immediately after an element has gained focus. Capturable, does not bubbles, non-cancellable. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Base class for focus related events. Direction of the focus change. For FocusOut and Blur events, the element gaining the focus. For FocusIn and Focus events, the element losing the focus. Get an event from the event pool and initialize it with the given values. Use this function instead of newing events. Events obtained from this function should be released back to the pool using ReleaseEvent(). The event target. The related target. The direction of the focus change. An event. Reset the event members to their initial value. Event sent immediately before an element gains focus. Capturable, bubbles, non-cancellable. Constructor. Reset the event members to their initial value. Event sent immediately before an element loses focus. Capturable, bubbles, non-cancellable. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Reset the event members to their initial value. Interface for event dispatchers. The element capturing the mouse, if any. Dispatch an event to the panel. The event to dispatch. The panel where the event will be dispatched. Release the capture. Release capture and notify capturing element. Take the capture. The element that takes the capture. Interface for class capable of handling events. Handle an event. The event to handle. Return true if event handlers for the event propagation bubble up phase have been attached on this object. True if object has event handlers for the bubble up phase. Return true if event handlers for the event propagation capture phase have been attached on this object. True if object has event handlers for the capture phase. Callback executed when the event handler loses the capture. Interface for focus events. Direction of the focus change. Related target. See implementation for specific meaning. Interface for classes implementing focus rings. Get the direction of the focus change for the given event. For example, when the Tab key is pressed, focus should be given to the element to the right. Get the next element in the given direction. Interface for keyboard events. Return true if the Alt key is pressed. The character. Return true if the Windows/Command key is pressed. Return true if the Control key is pressed. The key code. Flag set holding the pressed modifier keys (Alt, Control, Shift, Windows/Command). Return true if the Shift key is pressed. Class used to dispatch IMGUI event types that have no equivalent in UIElements events. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Get an event from the event pool and initialize it with the given values. Use this function instead of newing events. Events obtained from this function should be released back to the pool using ReleaseEvent(). The IMGUI event used to initialize the event. An event. Reset the event members to their initial value. Interface for mouse events. Return true if the Alt key is pressed. Integer representing the pressed mouse button: 0 is left, 1 is right, 2 is center. Number of clicks. Return true if the Windows/Command key is pressed. Return true if the Control key is pressed. The mouse position in the current target coordinate system. Flag set holding the pressed modifier keys (Alt, Control, Shift, Windows/Command). Mouse position difference between the last mouse event and this one. The mouse position in the panel coordinate system. Return true if the Shift key is pressed. Interface for classes implementing UI panels. Return the focus controller for this panel. A reference to a scheduled action. A scheduler allows you to register actions to be executed at a later point. Add this item to the list of scheduled tasks. The item to register. Schedule this action to be executed later. The item will be automatically unscheduled after it has ran for the amount of time specified with the durationMs parameter. Action to be executed. The minimum delay in milliseconds before executing the action. The minimum interval in milliseconds between each execution. The total duration in milliseconds where this item will be active. Internal reference to the scheduled action. Schedule this action to be executed later. After the execution, the item will be automatically unscheduled. Action to be executed. The minimum delay in milliseconds before executing the action. Internal reference to the scheduled action. Schedule this action to be executed later. Item will be unscheduled when condition is met. Action to be executed. The minimum delay in milliseconds before executing the action. The minimum interval in milliseconds bettwen each execution. When condition returns true, the item will be unscheduled. Internal reference to the scheduled action. Manually unschedules a previously scheduled action. The item to be removed from this scheduler. This interface provides access to a VisualElement style data. Alignment of the whole area of children on the cross axis if they span over multiple lines in this container. Alignment of children on the cross axis of this container. Similar to align-items, but only for this specific element. Background color to paint in the element's box. Background image to paint in the element's box. Background image scaling in the element's box. Space reserved for the bottom edge of the border during the layout phase. This is the radius of the bottom-left corner when a rounded rectangle is drawn in the element's box. This is the radius of the bottom-right corner when a rounded rectangle is drawn in the element's box. Space reserved for the bottom edge of the border during the layout phase. Color of the border to paint inside the element's box. Space reserved for the left edge of the border during the layout phase. Space reserved for the left edge of the border during the layout phase. This is the radius of every corner when a rounded rectangle is drawn in the element's box. Space reserved for the right edge of the border during the layout phase. Space reserved for the right edge of the border during the layout phase. Space reserved for the top edge of the border during the layout phase. This is the radius of the top-left corner when a rounded rectangle is drawn in the element's box. This is the radius of the top-right corner when a rounded rectangle is drawn in the element's box. Space reserved for the top edge of the border during the layout phase. Ration of this element in its parent during the layout phase. Direction of the main axis to layout children in a container. Placement of children over multiple lines if not enough space is available in this container. Font to draw the element's text. Font size to draw the element's text. Font style to draw the element's text. Fixed height of an element for the layout. Justification of children on the main axis of this container. Space reserved for the bottom edge of the margin during the layout phase. Space reserved for the left edge of the margin during the layout phase. Space reserved for the right edge of the margin during the layout phase. Space reserved for the top edge of the margin during the layout phase. Maximum height for an element, when it is flexible or measures its own size. Maximum width for an element, when it is flexible or measures its own size. Minimum height for an element, when it is flexible or measures its own size. Minimum height for an element, when it is flexible or measures its own size. Space reserved for the bottom edge of the padding during the layout phase. Space reserved for the left edge of the padding during the layout phase. Space reserved for the right edge of the padding during the layout phase. Space reserved for the top edge of the padding during the layout phase. Bottom distance from the element's box during layout. Left distance from the element's box during layout. Right distance from the element's box during layout. Top distance from the element's box during layout. Element's positioning in its parent container. Size of the 9-slice's bottom edge when painting an element's background image. Size of the 9-slice's left edge when painting an element's background image. Size of the 9-slice's right edge when painting an element's background image. Size of the 9-slice's top edge when painting an element's background image. Text alignment in the element's box. Clipping if the text does not fit in the element's box. Color to use when drawing the text of an element. Fixed width of an element for the layout. Word wrapping over multiple lines if not enough space is available to draw the text of an element. This interface provides access to a VisualElement transform data. Transformation matrix calculated from the position, rotation and scale of the transform (Read Only). The position of the VisualElement's transform. The rotation of the VisualElement's transform stored as a Quaternion. The scale of the VisualElement's transform. Interface allowing access to this elements datawatch. Starts watching an object. When watched, all changes on an object will trigger the callback to be invoked. The object to watch. Callback. A reference to this datawatch request. Disposing it will ensure any native resources will also be released. Unregisters a previously watched request. The registered request. An internal reference to a data watch request. This type allows UXML attribute value retrieval during the VisualElement instantiation. An instance will be provided to the factory method - see UXMLFactoryAttribute. Attribute name. Default value if the property is not found. The attribute value or the default value if not found. Attribute name. Default value if the property is not found. The attribute value or the default value if not found. Attribute name. Default value if the property is not found. The attribute value or the default value if not found. Attribute name. Default value if the property is not found. The attribute value or the default value if not found. Attribute name. Default value if the property is not found. The attribute value or the default value if not found. Attribute name. Default value if the property is not found. The attribute value or the default value if not found. Attribute name. The raw value or null if not found. Represents a scheduled task created with a VisualElement's schedule interface. Returns the VisualElement this object is associated with. Will be true when this item is scheduled. Note that an item's callback will only be executed when it's VisualElement is attached to a panel. Repeats this action after a specified time. Minimum amount of time in milliseconds between each action execution. This ScheduledItem. Cancels any previously scheduled execution of this item and re-schedules the item. Minimum time in milliseconds before this item will be executed. After specified duration, the item will be automatically unscheduled. The total duration in milliseconds where this item will be active. This ScheduledItem. Removes this item from its VisualElement's scheduler. If not already active, will schedule this item on its VisualElement's scheduler. Adds a delay to the first invokation. The minimum number of milliseconds after activation where this item's action will be executed. This ScheduledItem. Item will be unscheduled automatically when specified condition is met. When condition returns true, the item will be unscheduled. This ScheduledItem. A scheduler allows you to register actions to be executed at a later point. Schedule this action to be executed later. The action to be executed. The action to be executed. Reference to the scheduled action. Schedule this action to be executed later. The action to be executed. The action to be executed. Reference to the scheduled action. Base class for keyboard events. Return true if the Alt key is pressed. The character. Return true if the Windows/Command key is pressed. Return true if the Control key is pressed. The key code. Flag set holding the pressed modifier keys (Alt, Control, Shift, Windows/Command). Return true if the Shift key is pressed. Get an event from the event pool and initialize it with the given values. Use this function instead of newing events. Events obtained from this function should be released back to the pool using ReleaseEvent(). The character for this event. The keyCode for this event. Event modifier keys that are active for this event. A keyboard IMGUI event. A keyboard event. Get an event from the event pool and initialize it with the given values. Use this function instead of newing events. Events obtained from this function should be released back to the pool using ReleaseEvent(). The character for this event. The keyCode for this event. Event modifier keys that are active for this event. A keyboard IMGUI event. A keyboard event. Reset the event members to their initial value. Event sent when a key is pressed on the keyboard. Capturable, bubbles, cancellable. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Event sent when a key is released on the keyboard. Capturable, bubbles, cancellable. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Mouse down event. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Event sent when the mouse pointer enters an element or one of its descendent elements. Capturable, does not bubbles, non-cancellable. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Reset the event members to their initial value. The base class for mouse events. Return true if the Alt key is pressed. Integer representing the pressed mouse button: 0 is left, 1 is right, 2 is center. Number of clicks. Return true if the Windows/Command key is pressed. Return true if the Control key is pressed. The current target of the event. The current target is the element in the propagation path for which event handlers are currently being executed. The mouse position in the current target coordinate system. Flag set holding the pressed modifier keys (Alt, Control, Shift, Windows/Command). Mouse position difference between the last mouse event and this one. The mouse position in the screen coordinate system. Return true if the Shift key is pressed. Get an event from the event pool and initialize it with the given values. Use this function instead of newing events. Events obtained from this function should be released back to the pool using ReleaseEvent(). A mouse IMGUI event. A mouse event that is the cause of this new event. A mouse event. Get an event from the event pool and initialize it with the given values. Use this function instead of newing events. Events obtained from this function should be released back to the pool using ReleaseEvent(). A mouse IMGUI event. A mouse event that is the cause of this new event. A mouse event. Reset the event members to their initial value. Event sent when the mouse pointer exits an element and all its descendent elements. Capturable, does not bubbles, non-cancellable. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Reset the event members to their initial value. Mouse move event. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Event sent when the mouse pointer exits an element. Capturable, bubbles, cancellable. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Event sent when the mouse pointer enters an element. Capturable, bubbles, cancellable. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Mouse up event. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Event sent after the layout is done in a tree. Non-capturable, does not bubble, non-cancellable. True if the layout of the element has changed. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Get an event from the event pool and initialize it with the given values. Use this function instead of newing events. Events obtained from this function should be released back to the pool using ReleaseEvent(). Whether the target layout changed. An event. Reset the event members to their initial value. The propagation phases of an event. The event is being sent to the event target. The event is being sent to the event target parent element up to the root element. The event is being sent to the root element down to the event target parent element. The event is being sent to the target element for it to execute its default actions for this event. Event handlers do not get the events in this phase. Instead, ExecuteDefaultAction is called on the target. The event is not being propagated. Called when the persistent data is accessible and/or when the data or persistence key have changed (VisualElement is properly parented). This enumeration contains values to control how an element is aligned in its parent during the layout phase. Default value (currently FlexStart). Items are centered on the cross axis. Items are aligned at the end on the cross axis. Items are aligned at the beginning on the cross axis. Stretches items on the cross axis. This enumeration defines values used to control in which direction a container will place its children during layout. Vertical layout. Vertical layout in reverse order. Horizontal layout. Horizontal layout in reverse order. This enumeration contains values to control how children are justified during layout. Items are centered. Items are justified towards the end of the layout direction. Items are justified towards the beginning of the main axis. Items are evenly distributed in the line with extra space on each end of the line. Items are evenly distributed in the line; first item is at the beginning of the line, last item is at the end. This enumeration contains values to control how an element is positioned in its parent container. The element is positioned in relation to its parent box and does not contribute to the layout anymore. The element is positioned in relation to its default box as calculated by layout. This enumeration contains values to control how elements are placed in a container if not enough space is available. All elements are placed on the same line. Elements are placed over multiple lines. This interface exposes methods to read custom style properties applied from USS files to visual elements. Read a style property value into the specified StyleValue<T>. Name of the property in USS. Target StyleValue<T> field or variable to write to. Read a style property value into the specified StyleValue<T>. Name of the property in USS. Target StyleValue<T> field or variable to write to. Read a style property value into the specified StyleValue<T>. Name of the property in USS. Target StyleValue<T> field or variable to write to. Read a style property value into the specified StyleValue<T>. Name of the property in USS. Target StyleValue<T> field or variable to write to. Read a style property value into the specified StyleValue<T>. Name of the property in USS. Target StyleValue<T> field or variable to write to. Read a style property value into the specified StyleValue<T>. Name of the property in USS. Target StyleValue<T> field or variable to write to. This generic structure encodes a value type that can come from USS or be specified programmatically. This represents the default value for a StyleValue<T> of the according generic type. The actual value of the StyleValue<T>. Creates a StyleValue of the according generic type directly from a value. Value to be used as inline style. The result StyleValue<T> This constructor can be used to specified an alternate default value but it is recommended to use StyleValue<T>.nil. Default starting value. Utility function to be used when reading custom styles values and provide a default value in one step. Default value to be returned if no value is set. The value to be used for the custom style. A textfield is a rectangular area where the user can edit a string. The color of the cursor. Set this to true to allow double-clicks to select the word under the mouse and false if otherwise. Returns true if the textfield has the focus and false if otherwise. Set this to true to mask the characters and false if otherwise. The character used for masking in a password field. The maximum number of characters this textfield can hold. If 0, there is no limit. Set this to true to allow multiple lines in the textfield and false if otherwise. The color of the text selection. Set this to true to allow triple-clicks to select the line under the mouse and false if otherwise. Creates a new textfield. The maximum number of characters this textfield can hold. If 0, there is no limit. Set this to true to allow multiple lines in the textfield and false if otherwise. Set this to true to mask the characters and false if otherwise. The character used for masking in a password field. Creates a new textfield. The maximum number of characters this textfield can hold. If 0, there is no limit. Set this to true to allow multiple lines in the textfield and false if otherwise. Set this to true to mask the characters and false if otherwise. The character used for masking in a password field. Called when the persistent data is accessible and/or when the data or persistence key have changed (VisualElement is properly parented). Action that is called whenever the text changes in the textfield. Action that is called when the user validates the text in the textfield. Sets the event callback for this toggle button. The action to be called when this Toggle is clicked. UQuery is a set of extension methods allowing you to select individual or collection of visualElements inside a complex hierarchy. Utility Object that contructs a set of selection rules to be ran on a root visual element. Selects all elements that are active. A QueryBuilder with the selection rules. Convenience overload, shorthand for Build().AtIndex(). Compiles the selection rules into a QueryState object. Selects all elements that are checked. Selects all direct child elements of elements matching the previous rules. Selects all direct child elements of elements matching the previous rules. Selects all elements with the given class. Not to be confused with Type (see OfType<>()). Initializes a QueryBuilder. The root element on which to condfuct the search query. Selects all elements that are descendants of currently matching ancestors. Selects all elements that are descendants of currently matching ancestors. Selects all elements that are enabled. Convenience overload, shorthand for Build().First(). The first element matching all the criteria, or null if none was found. Selects all elements that are enabled. Convenience overload, shorthand for Build().ForEach(). The function to be invoked with each matching element. Convenience overload, shorthand for Build().ForEach(). The function to be invoked with each matching element. Each return value will be added to this list. Convenience overload, shorthand for Build().ForEach(). The function to be invoked with each matching element. Returns a list of all the results of the function calls. Selects all elements that are hovered. Convenience overload, shorthand for Build().Last(). The last element matching all the criteria, or null if none was found. Selects element with this name. Selects all elements that are not active. Selects all elements that npot checked. Selects all elements that are not enabled. Selects all elements that don't currently own the focus. Selects all elements that are not hovered. Selects all elements that are not selected. Selects all elements that are not visible. Selects all elements of the specified Type (eg: Label, Button, ScrollView, etc). If specified, will select elements with this name. If specified, will select elements with the given class (not to be confused with Type). If specified, will select elements with the given class (not to be confused with Type). QueryBuilder configured with the associated selection rules. Selects all elements of the specified Type (eg: Label, Button, ScrollView, etc). If specified, will select elements with this name. If specified, will select elements with the given class (not to be confused with Type). If specified, will select elements with the given class (not to be confused with Type). QueryBuilder configured with the associated selection rules. Selects all elements that are selected. Convenience method. shorthand for Build().ToList. Returns a list containing elements satisfying selection rules. Convenience method. Shorthand gor Build().ToList(). Adds all elements satisfying selection rules to the list. Selects all elements that are visible. Selects all elements satifying the predicate. Predicate that must return true for selected elements. QueryBuilder configured with the associated selection rules. Query object containing all the selection rules. Can be saved and rerun later without re-allocating memory. Selects the n th element matching all the criteria, or null if not enough elements were found. The index of the matched element. The match element at the specified index. The first element matching all the criteria, or null if none was found. The first element matching all the criteria, or null if none was found. Invokes function on all elements matching the query. The action to be invoked with each matching element. Invokes function on all elements matching the query. Each return value will be added to this list. The function to be invoked with each matching element. Invokes function on all elements matching the query. Overloaded for convenience. The function to be invoked with each matching element. Returns a list of all the results of the function calls. The last element matching all the criteria, or null if none was found. The last element matching all the criteria, or null if none was found. Creates a new QueryState with the same selection rules, applied on another VisualElement. The element on which to apply the selection rules. A new QueryState with the same selection rules, applied on this element. Returns a list containing elements satisfying selection rules. Returns a list containing elements satisfying selection rules. Adds all elements satisfying selection rules to the list. Adds all elements satisfying selection rules to the list. UQuery is a set of extension methods allowing you to select individual or collection of visualElements inside a complex hierarchy. Convenience overload, shorthand for Query<T>.Build().First(). Root VisualElement on which the selector will be applied. If specified, will select elements with this name. If specified, will select elements with the given class (not to be confused with Type). If specified, will select elements with the given class (not to be confused with Type). The first element matching all the criteria, or null if none was found. Convenience overload, shorthand for Query<T>.Build().First(). Root VisualElement on which the selector will be applied. If specified, will select elements with this name. If specified, will select elements with the given class (not to be confused with Type). If specified, will select elements with the given class (not to be confused with Type). The first element matching all the criteria, or null if none was found. Initializes a QueryBuilder with the specified selection rules. Root VisualElement on which the selector will be applied. If specified, will select elements with this name. If specified, will select elements with the given class (not to be confused with Type). If specified, will select elements with the given class (not to be confused with Type). QueryBuilder configured with the associated selection rules. Initializes a QueryBuilder with the specified selection rules. Root VisualElement on which the selector will be applied. If specified, will select elements with this name. If specified, will select elements with the given class (not to be confused with Type). If specified, will select elements with the given class (not to be confused with Type). QueryBuilder configured with the associated selection rules. Initializes a QueryBuilder with the specified selection rules. Template parameter specifies the type of elements the selector applies to (ie: Label, Button, etc). Root VisualElement on which the selector will be applied. If specified, will select elements with this name. If specified, will select elements with the given class (not to be confused with Type). If specified, will select elements with the given class (not to be confused with Type). QueryBuilder configured with the associated selection rules. Initializes a QueryBuilder with the specified selection rules. Template parameter specifies the type of elements the selector applies to (ie: Label, Button, etc). Root VisualElement on which the selector will be applied. If specified, will select elements with this name. If specified, will select elements with the given class (not to be confused with Type). If specified, will select elements with the given class (not to be confused with Type). QueryBuilder configured with the associated selection rules. Initializes an empty QueryBuilder on a specified root element. Root VisualElement on which the selector will be applied. An empty QueryBuilder on a specified root element. Base class for all user-defined UXML Element factories. This method is meant to be overriden by the user. It must create an element of the expected type, using the creation context and available properties. Read access to the UXML attributes. Context of the current instantiation. An instance of the target type. Base class for objects that are part of the UIElements visual tree. 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. 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. The ChangeType(s) to check. True if at least one of the checked ChangeTypes have been marked dirty. Returns the elements from its contentContainer Remove all child elements from this element's contentContainer Options to select clipping strategy. Enables clipping and renders contents to a cache texture. Will enable clipping. This VisualElement and its children's content will be limited to this element's bounds. Will disable clipping and let children VisualElements paint outside its bounds. Returns true if the element is a direct child of this VisualElement Retrieves the child element at position Searchs up the hierachy of this VisualElement and retrieves stored userData, if any is found. 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. Full hierarchical persistence key. Takes a reference to an existing persisted object and a key and returns the object either filled with the persisted state or as-is. An existing object to be persisted, or null to create a new object. If no persisted state is found, a non-null object will be returned as-is. The key for the current VisualElement to be used with the persistence store on the EditorWindow. The same object being passed in (or a new one if null was passed in), but possibly with its persistent state restored. Takes a reference to an existing persisted object and a key and returns the object either filled with the persisted state or as-is. An existing object to be persisted, or null to create a new object. If no persisted state is found, a non-null object will be returned as-is. The key for the current VisualElement to be used with the persistence store on the EditorWindow. The same object being passed in (or a new one if null was passed in), but possibly with its persistent state restored. Checks if this stylesheet file is in this element list of applied styles Hierarchy is a sctuct allowing access to the shadow hierarchy of visual elements Number of child elements in this object's contentContainer Access the physical parent of this element in the hierarchy Add an element to this element's contentContainer Returns the elements from its contentContainer Remove all child elements from this element's contentContainer Retrieves the child element at position Insert an element into this element's contentContainer Removes this child from the hierarchy Remove the child element located at this position from this element's contentContainer Reorders child elements from this VisualElement contentContainer. Sorting criteria. Access to this element physical hierarchy Insert an element into this element's contentContainer The modes available to measure VisualElement sizes. At Most. The element should give its preferred width/height but no more than the value passed. The element should give the width/height that is passed in and derive the opposite site from this value (for example, calculate text size from a fixed width). The element should give its preferred width/height without any constraint. Called when the persistent data is accessible and/or when the data or persistence key have changed (VisualElement is properly parented). Callback when the styles of an object have changed. Overwrite object from the persistent data store. The key for the current VisualElement to be used with the persistence store on the EditorWindow. Object to overwrite. 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. Changes the VisualElement enabled state. A disabled VisualElement does not receive most events. New enabled state Reorders child elements from this VisualElement contentContainer. Sorting criteria. Access to this element physical hierarchy VisualElementExtensions is a set of extension methods useful for VisualElement. Add a manipulator associated to a VisualElement. VisualElement associated to the manipulator. Manipulator to be added to the VisualElement. Remove a manipulator associated to a VisualElement. VisualElement associated to the manipulator. Manipulator to be removed from the VisualElement. Define focus change directions for the VisualElementFocusRing. Last value for the direction defined by this class. The focus is moving to the left. The focus is moving to the right. Implementation of a linear focus ring. Elements are sorted according to their focusIndex. The focus order for elements having 0 has a focusIndex. Constructor. The root of the element tree for which we want to build a focus ring. Default ordering of the elements in the ring. Ordering of elements in the focus ring. Order elements using a depth-first pre-order traversal of the element tree. Order elements according to their position, first by X, then by Y. Order elements according to their position, first by Y, then by X. Get the direction of the focus change for the given event. For example, when the Tab key is pressed, focus should be given to the element to the right in the focus ring. Get the next element in the given direction. Mouse wheel event. The amount of scrolling applied on the mouse wheel. Constructor. Avoid newing events. Instead, use GetPooled() to get an event from a pool of reusable events. Get an event from the event pool and initialize it with the given values. Use this function instead of newing events. Events obtained from this function should be released back to the pool using ReleaseEvent(). A wheel IMGUI event. A wheel event. Reset the event members to their initial value.