# targets

> An array of all the object being inspected.

## Definition

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

```csharp
public Object[] targets { get; }
```

### Remarks

For editors that support multi-object editing, you can use the targets property in [Editor.OnInspectorGUI()](/engine/6000.3/script-reference/unityeditor/editor/oninspectorgui.md). However, it is better to use the [Editor.serializedObject](/engine/6000.3/script-reference/unityeditor/editor/serializedobject.md), as described on the page about the [Editor](/engine/6000.3/script-reference/unityeditor/editor.md) class.

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