OfType
Selects all elements of the specified Type (eg: Label, Button, ScrollView, etc).
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
OfType<T>(string, string[])
Selects all elements of the specified Type (eg: Label, Button, ScrollView, etc).
public UQueryBuilder<T2> OfType<T2>(string name = null, params string[] classes) where T2 : VisualElement
Parameters
Returns
Type | Description |
|---|---|
| UQueryBuilder<T> | QueryBuilder configured with the associated selection rules. |
OfType<T>(string, string)
Selects all elements of the specified Type (eg: Label, Button, ScrollView, etc).
public UQueryBuilder<T2> OfType<T2>(string name = null, string className = null) where T2 : VisualElement
Parameters
Returns
Type | Description |
|---|---|
| UQueryBuilder<T> | QueryBuilder configured with the associated selection rules. |