Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public UQueryBuilder<T> Class(string classname)

Parameters

classname

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.