SceneUtility.GetScenePathByBuildIndex

Switch to Manual
public static string GetScenePathByBuildIndex (int buildIndex);

Returns

string 场景路径(例如“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.