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.


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