# FillDefaultInspector(VisualElement, SerializedObject, Editor)

> Adds default inspector property fields under a container VisualElement.

## Definition

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

```csharp
public static void FillDefaultInspector(VisualElement container, SerializedObject serializedObject, Editor editor)
```

### Parameters

**** (\[VisualElement]\(/engine/6000.0/script-reference/unityengine/uielements/visualelement)): The parent VisualElement**** (\[SerializedObject]\(/engine/6000.0/script-reference/unityeditor/serializedobject)): The SerializedObject to inspect**** (\[Editor]\(/engine/6000.0/script-reference/unityeditor/editor)): The editor currently used

### Remarks

The following example shows how to fill a container with default inspector fields. For a complete example, refer to Create a default Inspector.

### Examples

```csharp
var container = new VisualElement();
InspectorElement.FillDefaultInspector(container, serializedObject, editor);
```
