Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BaseUxmlTraits

Base class that describes a VisualElement derived class for the parsing of UXML files and the generation of UXML schema definition.
Read time 1 minuteLast updated 8 days ago

Definition

Warning
Deprecated. BaseUxmlTraits is deprecated and will be removed. Use UxmlElementAttribute instead.
public abstract class BaseUxmlTraits

Properties

Property

Description

canHaveAnyAttributeMust return true if the UXML element attributes are not restricted to the values enumerated by BaseUxmlTraits.uxmlAttributesDescription.
uxmlAttributesDescriptionDescribes the UXML attributes expected by the element. The attributes enumerated here will appear in the UXML schema.
uxmlChildElementsDescriptionDescribes the types of element that can appear as children of this element in a UXML file.