文档

Unity Engine

Unity Engine

Bind(VisualElement, SerializedObject)

Binds a SerializedObject to fields in the element hierarchy.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static void Bind(this VisualElement element, SerializedObject obj)

Parameters

Root VisualElement containing IBindable fields.

Data object.

Remarks

Don’t call
Bind()
from the @@Editor.CreateInspectorGUI()@2 or
PropertyDrawer.CreatePropertyGUI()
override. It is called automatically on the hierarchy that these methods return.