Class Toggle.UxmlTraits
Defines Toggle.UxmlTraits for the Toggle.
Inheritance
Toggle.UxmlTraits
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public class UxmlTraits : BaseFieldTraits<bool, UxmlBoolAttributeDescription>
Methods
Init(VisualElement, IUxmlAttributes, CreationContext)
Initializes Toggle 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. |
Overrides
UnityEngine.UIElements.BaseFieldTraits<System.Boolean, UnityEngine.UIElements.UxmlBoolAttributeDescription>.Init(UnityEngine.UIElements.VisualElement, UnityEngine.UIElements.IUxmlAttributes, UnityEngine.UIElements.CreationContext)