文档

Unity Engine

Unity Engine

Init(VisualElement, IUxmlAttributes, CreationContext)

Initializes the TextValueField<TValueType> 's UxmlTraits.
阅读时间1 分钟最后更新于 1 个月前

Definition

警告
Deprecated. TextValueFieldTraits<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.

A bag of UXML attribute name-value pairs used to initialize VisualElement members.

The creation context associated with these traits.