Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Init(VisualElement, IUxmlAttributes, CreationContext)

Initializes the trait of BaseField.
Read time 1 minuteLast updated 13 days ago

Definition

Warning
Deprecated. BaseFieldTraits<TValueType, TValueUxmlAttributeType> is deprecated and will be removed. Use UxmlElementAttribute instead.
public override void Init(VisualElement ve, IUxmlAttributes bag, CreationContext cc)

Parameters

The VisualElement to initialize.

Bag of attributes.

The creation context associated with these traits.