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