Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateLoadableSceneId

Create a LoadableSceneId object based using a scene's GUID.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

CreateLoadableSceneId(GUID)

Create a LoadableSceneId object based using a scene's GUID.
public static LoadableSceneId CreateLoadableSceneId(GUID guid)

Parameters

guid

GUID
The scene's GUID.

Returns

Type

Description

LoadableSceneIdA LoadableSceneId handle populated to reference the provided scene.

CreateLoadableSceneId(string)

Create a LoadableSceneId object based on a scene's path.
public static LoadableSceneId CreateLoadableSceneId(string scenePath)

Parameters

scenePath

The scene's path within the project. Must end with .unity extension.

Returns

Type

Description

LoadableSceneIdA LoadableSceneId handle populated to reference the provided scene.