# IsPreviewSceneObject(Object)

> Checks whether an object is part of a preview scene.

## Definition

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

```csharp
public static bool IsPreviewSceneObject(Object obj)
```

### Parameters

**** (\[Object]\(/engine/6000.6/script-reference/unityengine/object)): The object to check.

### Returns

| Type                                                          | Description                                             |
| ------------------------------------------------------------- | ------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if this object is part of a preview scene. |

### Remarks

A preview scene is an Editor-only scene that isn't displayed in the Hierarchy window. You can use preview scenes for tooling that needs to access GameObjects but where the scene shouldn't be displayed in the Hierarchy. Examples of preview scenes are the preview area in the bottom of the Inspector, and the scene used when editing a prefab in Prefab Mode.
