Class ColorField.UxmlTraits
Defines ColorField.UxmlTraits for the ColorField.
Inheritance
ColorField.UxmlTraits
Inherited Members
Namespace: UnityEditor.UIElements
Syntax
public class UxmlTraits : BaseFieldTraits<Color, UxmlColorAttributeDescription>
Methods
Init(VisualElement, IUxmlAttributes, CreationContext)
Initialize ColorField 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<Color, UnityEngine.UIElements.UxmlColorAttributeDescription>.Init(UnityEngine.UIElements.VisualElement, UnityEngine.UIElements.IUxmlAttributes, UnityEngine.UIElements.CreationContext)