Documentation

Unity Engine

Unity Engine

name

The name of this VisualElement.
Read time 1 minuteLast updated 2 months ago

Definition

[UxmlAttribute]public string name { get; set; }

Remarks

Use this property to write USS selectors that target a specific element. The standard practice is to give an element a unique name.