# targetObject

> The inspected object (Read Only).

## Definition

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

```csharp
public Object targetObject { get; }
```

### Remarks

When multi-object editing, the targetObject property will just return the first of the edited objects. To get all the objects, use the [SerializedObject.targetObjects](/engine/6000.7/script-reference/unityeditor/serializedobject/targetobjects.md) property instead.
