Modifier

Partager via


EditorSceneUtils.SetActiveScene(Scene) Method

Definition

Attempts to set the active scene and catches all the various ways it can go wrong. Returns true if successful.

public:
 static bool SetActiveScene(UnityEngine::SceneManagement::Scene scene);
public static bool SetActiveScene (UnityEngine.SceneManagement.Scene scene);
static member SetActiveScene : UnityEngine.SceneManagement.Scene -> bool
Public Shared Function SetActiveScene (scene As Scene) As Boolean

Parameters

scene
UnityEngine.SceneManagement.Scene

Returns

Applies to