Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

SceneManager.GetSceneAt

public static SceneManagement.Scene GetSceneAt(int index);

Parameters

index Index of the scene to get. Index must be greater than or equal to 0 and less than SceneManager.sceneCount.

Description

Get the scene at index in the SceneManager's list of added scenes.