Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BindProperty

Binds a property to a field and synchronizes their values. This method finds the property using the field's binding path.
Read time 1 minuteLast updated 11 days ago

Definition

BindProperty(IBindable, SerializedObject)

Binds a property to a field and synchronizes their values. This method finds the property using the field's binding path.
public static SerializedProperty BindProperty(this IBindable field, SerializedObject obj)

Parameters

VisualElement field editing a property.

Root SerializedObject containing the bindable property.

Returns

Type

Description

SerializedPropertyThe serialized object that owns the bound property.

BindProperty(IBindable, SerializedProperty)

Binds a property to a field and synchronizes their values.
public static void BindProperty(this IBindable field, SerializedProperty property)

Parameters

VisualElement field editing a property.

The SerializedProperty to bind.