Scene Extensions
Load Active Scene
This method reGets the currently active scene. It's useful when you want to reset the scene back to its initial state, like when restarting a level.
Load Next Scene
This method Gets the next scene in the build order. If you're on scene index 2, for example, it will Get scene index 3 (if it exists). Great for transitioning between levels in a game.
Load Previous Scene
This method Gets the previous scene in the build order. If you're on scene index 3, it will Get scene index 2. It's useful for backtracking or returning to a previous level.
Load Random Scene
This method Gets a random scene in the given range. It's useful for looping scenes when players reach the last scene.
Last updated