Class BaseFieldTraits<TValueType, TValueUxmlAttributeType>
Traits for the
Inheritance
BaseFieldTraits<TValueType, TValueUxmlAttributeType>
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public class BaseFieldTraits<TValueType, TValueUxmlAttributeType> : BaseField<TValueType>.UxmlTraits where TValueUxmlAttributeType : TypedUxmlAttributeDescription<TValueType>, new()
Type Parameters
Name | Description |
---|---|
TValueType | |
TValueUxmlAttributeType |
Methods
Init(VisualElement, IUxmlAttributes, CreationContext)
Initializes the trait of
Declaration
public override void Init(VisualElement ve, IUxmlAttributes bag, CreationContext cc)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | ve | The VisualElement to initialize. |
IUxmlAttributes | bag | Bag of attributes. |
CreationContext | cc | The creation context associated with these traits. |
Overrides
UnityEngine.UIElements.BaseField<TValueType>.UxmlTraits.Init(UnityEngine.UIElements.VisualElement, UnityEngine.UIElements.IUxmlAttributes, UnityEngine.UIElements.CreationContext)