Editar

Partilhar via


EditorSceneUtils.GetSceneBuildIndex Method

Definition

Gets the build index for a scene GUID. There are many ways to do this in Unity but this is the only 100% reliable method I know of.

public:
 static int GetSceneBuildIndex(UnityEditor::GUID sceneGUID, System::Collections::Generic::List<UnityEditor::EditorBuildSettingsScene ^> ^ scenes);
public static int GetSceneBuildIndex (UnityEditor.GUID sceneGUID, System.Collections.Generic.List<UnityEditor.EditorBuildSettingsScene> scenes);
static member GetSceneBuildIndex : UnityEditor.GUID * System.Collections.Generic.List<UnityEditor.EditorBuildSettingsScene> -> int
Public Shared Function GetSceneBuildIndex (sceneGUID As GUID, scenes As List(Of EditorBuildSettingsScene)) As Integer

Parameters

sceneGUID
UnityEditor.GUID
scenes
List<UnityEditor.EditorBuildSettingsScene>

Returns

Applies to