文档

Unity Engine

Unity Engine

CreateLoadableSceneId

Create a LoadableSceneId object based using a scene's GUID.
阅读时间1 分钟最后更新于 1 个月前

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.