# target

> The object being inspected.

## Definition

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

```csharp
public Object target { get; set; }
```

### Remarks

For editors that support multi-object editing, the target property should not be used inside [Editor.OnInspectorGUI()](/engine/6000.5/script-reference/unityeditor/editor/oninspectorgui.md) since it only refers to the first of the edited objects. It should still be used in OnSceneGUI and [Editor.OnPreviewGUI](/engine/6000.5/script-reference/unityeditor/editor/onpreviewgui.md), which will be called once for each of the selected objects with the target property referring to each of them in turn.

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