Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Bind(VisualElement, SerializedObject)

Binds a SerializedObject to fields in the element hierarchy.
Read time 1 minuteLast updated 6 days ago

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.