Version: Unity 6.2 (6000.2)
LanguageEnglish
  • C#

EditorSceneManager.IsPreviewSceneObject

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static bool IsPreviewSceneObject(Object obj);

Parameters

Parameter Description
obj The object to check.

Returns

bool Returns true if this object is part of a preview scene.

Description

Checks whether an object is part of a preview scene.

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.