GetScenePathByBuildIndex(int)
Get the Scene path from a build index.
Read time 1 minuteLast updated 16 days ago
Definition
- Type: Method
- Namespace: UnityEngine.SceneManagement
- Assembly: UnityEngine.CoreModule
public static string GetScenePathByBuildIndex(int buildIndex)
Parameters
Returns
Type | Description |
|---|---|
| string | Scene path (e.g "Assets/Scenes/Scene1.unity"). |
Remarks
The build index refers to the index into the list of Scenes as specified in the Build Settings window.