Dogan Kirnaz
  • Welcome
  • Setup
    • Quickstart
  • Basics
    • Agent Extensions
    • Audio Extensions
    • Camera Extensions
    • Collision Extensions
    • Coroutine Extensions
    • Encryption Extensions
    • Format Extensions
    • Game Extensions
    • Json Extensions
    • List Extensions
    • Loop Extensions
    • Material Extensions
    • Math Extensions
    • GameObject Extensions
    • Physics Extensions
    • Object Pool Extensions
    • Scene Extensions
    • PlayerPrefs Extensions
  • Support
    • Support
Powered by GitBook
On this page
  1. Basics

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.

SceneExtensions.LoadActiveScene();

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.

SceneExtensions.LoadNextScene();

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.

SceneExtensions.LoadPreviousScene();

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.

SceneExtensions.LoadRandomScene(minIndex, maxIndex);
PreviousObject Pool ExtensionsNextPlayerPrefs Extensions

Last updated 23 days ago