# serializedObject

> A SerializedObject representing the object or objects being inspected.

## Definition

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

```csharp
public SerializedObject serializedObject { get; }
```

### Remarks

Use the serializedObject inside the [Editor.OnInspectorGUI()](/engine/6000.6/script-reference/unityeditor/editor/oninspectorgui.md) function of a custom Editor, as described on the page about the [Editor](/engine/6000.6/script-reference/unityeditor/editor.md) class.

Do not use the serializedObject inside OnSceneGUI or [Editor.OnPreviewGUI](/engine/6000.6/script-reference/unityeditor/editor/onpreviewgui.md). Use the target property directly in those callback functions instead.

Additional Resources: [Editor](/engine/6000.6/script-reference/unityeditor/editor.md) class, [SerializedObject](/engine/6000.6/script-reference/unityeditor/serializedobject.md) class.
