This version of Unity is unsupported.

SceneManagerAPI.GetSceneByBuildIndex

Declaration

protected SceneManagement.Scene GetSceneByBuildIndex(int buildIndex);

Parameters

buildIndex Build 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.