ドキュメント

Unity Engine

Unity Engine

Init(VisualElement, IUxmlAttributes, CreationContext)

Initialize a VisualElement instance with values from the UXML element attributes.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

注意
Deprecated. UxmlTraits is deprecated and will be removed. Use UxmlElementAttribute instead.
public virtual void Init(VisualElement ve, IUxmlAttributes bag, CreationContext cc)

Parameters

The VisualElement to initialize.

A bag of name-value pairs, one for each attribute of the UXML element.

When the element is created as part of a template instance inserted in another document, this contains information about the insertion point.

Remarks

Override this function in your traits class to initialize your C# object with values read from the UXML document.