Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

SceneUtility.GetScenePathByBuildIndex

public static string GetScenePathByBuildIndex(int buildIndex);

Returns

string Scene path (e.g "Assets/Scenes/Scene1.unity").

Description

Get the scene path from a build index.

The build index refers to the index into the list of scenes as specified in the Build Settings window.

Did you find this page useful? Please give it a rating: