Class(string)
Selects all elements with the specified class in the class list, as specified with the class attribute in a UXML file or added with VisualElement.AddToClassList method.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public UQueryBuilder<T> Class(string classname)
Parameters
The class to use in the query.
Returns
Type | Description |
|---|---|
| UQueryBuilder<T> |
Remarks
This method can be called multiple times in order to select elements with multiple classes. To select elements by their C# type, use UQueryBuilder<T>.OfType.