# GetInspectorTitle

> Inspector title for an object.

## Definition

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

## GetInspectorTitle(Object, bool)

Inspector title for an object.

```csharp
public static string GetInspectorTitle(Object obj, bool multiObjectEditing)
```

### Parameters

**** (\[Object]\(/engine/6000.6/script-reference/unityengine/object)): Object to get a title from.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Tells if the inspector is running multi-edit.

### Returns

| Type                                                           | Description                                                  |
| -------------------------------------------------------------- | ------------------------------------------------------------ |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | Returns the best title according to objects being inspected. |

### Remarks

If an object is a script, this will return "*scriptname* (Script)", for example.

Additional Resources: [ObjectNames.GetClassName](/engine/6000.6/script-reference/unityeditor/objectnames/getclassname.md), [ObjectNames.NicifyVariableName](/engine/6000.6/script-reference/unityeditor/objectnames/nicifyvariablename.md).

## GetInspectorTitle(Object)

Inspector title for an object.

```csharp
public static string GetInspectorTitle(Object obj)
```

### Parameters

**** (\[Object]\(/engine/6000.6/script-reference/unityengine/object)): Object to get a title from.

### Returns

| Type                                                           | Description                                                  |
| -------------------------------------------------------------- | ------------------------------------------------------------ |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | Returns the best title according to objects being inspected. |

### Remarks

If an object is a script, this will return "*scriptname* (Script)", for example.

Additional Resources: [ObjectNames.GetClassName](/engine/6000.6/script-reference/unityeditor/objectnames/getclassname.md), [ObjectNames.NicifyVariableName](/engine/6000.6/script-reference/unityeditor/objectnames/nicifyvariablename.md).
