跳到主要内容

Class EditorSceneUtility

Provides scene utility for Editor.

Properties

currentScene

Get the currently activated Scene.

public static Scene currentScene { get; }

Methods

Exists(string relativeProjectPath)

Does the scene exist?

public static bool Exists(string relativeProjectPath)

OpenSceneClone(string relativeProjectPath)

Opens a clone of the specified scene.

public static Task<Scene> OpenSceneClone(string relativeProjectPath)

OpenReadonlyScene(string relativeProjectPath, [bool hide = true])

Open a read-only scene. All objects in this scene cannot be edited or viewed.

public static Task<Scene> OpenReadonlyScene(string relativeProjectPath, [bool hide = true])

OpenScene(string relativeProjectPath)

Open scene.

public static Scene OpenScene(string relativeProjectPath)

CreateScene(string sceneName)

Create a new scene.

public static Scene CreateScene(string sceneName)