ドキュメント

Unity Engine

Unity Engine

IsPreviewScene(Scene)

Checks whether a scene is a preview scene.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public static bool IsPreviewScene(Scene scene)

Parameters

scene

The scene to check.

Returns

Type

Description

boolReturns true if the scene is 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.