Version: 2018.3 (switch to 2019.1 )
UXML Elements Reference
Styles and Unity style sheets
Other Versions


UQuery provides a set of extension methods for retrieving elements from any UIElements visual tree. UQuery is based on JQuery or Linq, but UQuery is designed to limit dynamic memory allocation as much as possible. This allows for optimal performance on moble platforms.

To use UQuery to retrieve elements, use the UQueryExtensions.Q or initialize a QueryBuilder with UQueryExtensions.Query.

For example, the following UQuery starts at the root and finds the first Button with the name foo:


The following UQuery iterates, in the same group, on each Button named foo:

root.Query("foo").Children<Button>().ForEach(//do stuff);