SceneManager.LoadScene() returns void, so how can I get the the scene being loaded.

SceneManager.LoadScene() returns void, so how can I get the the scene being loaded.

SceneManager.LoadScene(0); //Loads the scene by index in the Build Settings
*
SceneManager.LoadScene(“Scene Name”); //Loads the scene by name
*
SceneManager.LoadScene(SceneManager.GetActiveScene().name); //Reloads the current scene
*
You’re probably looking for SceneManager.GetActiveScene(); which of course gets the scene you’re current in.