Class Scroller.UxmlTraits
Defines Scroller.UxmlTraits for the Scroller.
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public class UxmlTraits : VisualElement.UxmlTraits
Properties
uxmlChildElementsDescription
Returns an empty enumerable, as scrollers do not have children.
Declaration
public override IEnumerable<UxmlChildElementDescription> uxmlChildElementsDescription { get; }
Property Value
Type | Description |
---|---|
IEnumerable<UxmlChildElementDescription> |
Overrides
Methods
Init(VisualElement, IUxmlAttributes, CreationContext)
Initialize Scroller 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. |