# Bind(VisualElement, SerializedObject)

> Binds a SerializedObject to fields in the element hierarchy.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.UIElements](/engine/6000.6/script-reference/unityeditor/uielements.md)
* **Assembly:** UnityEditor.CoreModule

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

### Parameters

**** (\[VisualElement]\(/engine/6000.6/script-reference/unityengine/uielements/visualelement)): Root VisualElement containing IBindable fields.**** (\[SerializedObject]\(/engine/6000.6/script-reference/unityeditor/serializedobject)): 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.
