Class VisualElement.UxmlTraits
Defines VisualElement.UxmlTraits for the VisualElement.
Namespace: UnityEngine.UIElements
Syntax
public class UxmlTraits : UxmlTraits
Fields
m_Name
Declaration
protected UxmlStringAttributeDescription m_Name
Field Value
Type | Description |
---|---|
UxmlStringAttributeDescription |
m_PickingMode
Declaration
protected UxmlEnumAttributeDescription<PickingMode> m_PickingMode
Field Value
Type | Description |
---|---|
UxmlEnumAttributeDescription<PickingMode> |
Properties
focusable
The focusable attribute.
Declaration
protected UxmlBoolAttributeDescription focusable { get; set; }
Property Value
Type | Description |
---|---|
UxmlBoolAttributeDescription |
focusIndex
The focus index attribute.
Declaration
protected UxmlIntAttributeDescription focusIndex { get; set; }
Property Value
Type | Description |
---|---|
UxmlIntAttributeDescription |
uxmlChildElementsDescription
Returns an enumerable containing UxmlChildElementDescription(typeof(VisualElement))
, since VisualElements can contain other VisualElements.
Declaration
public override IEnumerable<UxmlChildElementDescription> uxmlChildElementsDescription { get; }
Property Value
Type | Description |
---|---|
IEnumerable<UxmlChildElementDescription> |
Overrides
Methods
Init(VisualElement, IUxmlAttributes, CreationContext)
Initialize VisualElement properties using values from the attribute bag.
Declaration
public override void Init(VisualElement ve, IUxmlAttributes bag, CreationContext cc)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | ve | The object to initialize. |
IUxmlAttributes | bag | The attribute bag. |
CreationContext | cc | The creation context; unused. |