EditorSceneUtils.GetSceneBuildIndex Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>