how to check in a script what scene is currently loaded code example Example: unity how to get the current scene SceneManager.GetActiveScene().buildIndex;