BindProperty
Binds a property to a field and synchronizes their values. This method finds the property using the field's binding path.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.UIElements
- Assembly: UnityEditor
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 |
|---|---|
| SerializedProperty | The 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.