SceneManagerAPI.GetSceneByBuildIndex

Switch to Manual
protected SearchService.Scene GetSceneByBuildIndex (int buildIndex);

Parameters

buildIndexBuild index as returned by SceneManagement.SceneManagerApi.GetNumScenesInBuildSettings.

Returns

Scene A reference to the Scene, if valid. If not, an invalid Scene is returned.

Description

Override for customizing the behavior of the SceneManager.GetSceneByBuildIndex function.