Experimental: this API is experimental and might be changed or removed in the future.

UQuery<T0>

struct in UnityEngine.Experimental.UIElements

Cambiar al Manual

Descripción

Utility Object that contructs a set of selection rules to be ran on a root visual element.

Constructores

UQuery.QueryBuilder_1Initializes a QueryBuilder.

Funciones Públicas

ActiveSelects all elements that are active.
AtIndexConvenience overload, shorthand for Build().AtIndex().
BuildCompiles the selection rules into a QueryState object.
CheckedSelects all elements that are checked.
ChildrenSelects all direct child elements of elements matching the previous rules.
ClassSelects all elements with the given class. Not to be confused with Type (see OfType<>()).
DescendentsSelects all elements that are descendants of currently matching ancestors.
EnabledSelects all elements that are enabled.
FirstConvenience overload, shorthand for Build().First().
FocusedSelects all elements that are enabled.
ForEachConvenience overload, shorthand for Build().ForEach().
HoveredSelects all elements that are hovered.
LastConvenience overload, shorthand for Build().Last().
NameSelects element with this name.
NotActiveSelects all elements that are not active.
NotCheckedSelects all elements that npot checked.
NotEnabledSelects all elements that are not enabled.
NotFocusedSelects all elements that don't currently own the focus.
NotHoveredSelects all elements that are not hovered.
NotSelectedSelects all elements that are not selected.
NotVisibleSelects all elements that are not visible.
OfTypeSelects all elements of the specified Type (eg: Label, Button, ScrollView, etc).
SelectedSelects all elements that are selected.
ToListConvenience method. shorthand for Build().ToList.
VisibleSelects all elements that are visible.
WhereSelects all elements satifying the predicate.