# BindProperty

> Binds a property to a field and synchronizes their values. This method finds the property using the field's binding path.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.UIElements](/engine/6000.0/script-reference/unityeditor/uielements.md)
* **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.

```csharp
public static SerializedProperty BindProperty(this IBindable field, SerializedObject obj)
```

### Parameters

**** (\[IBindable]\(/engine/6000.0/script-reference/unityengine/uielements/ibindable)): VisualElement field editing a property.**** (\[SerializedObject]\(/engine/6000.0/script-reference/unityeditor/serializedobject)): Root SerializedObject containing the bindable property.

### Returns

| Type                                                                                    | Description                                         |
| --------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [SerializedProperty](/engine/6000.0/script-reference/unityeditor/serializedproperty.md) | The serialized object that owns the bound property. |

## BindProperty(IBindable, SerializedProperty)

Binds a property to a field and synchronizes their values.

```csharp
public static void BindProperty(this IBindable field, SerializedProperty property)
```

### Parameters

**** (\[IBindable]\(/engine/6000.0/script-reference/unityengine/uielements/ibindable)): VisualElement field editing a property.**** (\[SerializedProperty]\(/engine/6000.0/script-reference/unityeditor/serializedproperty)): The SerializedProperty to bind.
