O'Reilly logo

Building Levels in Unity by Volodymyr Gerasimov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Level loading and streaming

In Unity, levels can be loaded in four different ways:

  • Loading: This destroys all the objects in the current scene and loads the new one with the loading screen. Optionally, you can specify which objects you don't want to be destroyed from the previous level by code.
  • Loading additively: Unlike normal loading, this doesn't destroy the objects present in the previous level, but adds new objects to them.
  • Loading asynchronously: This loads levels in the background, allowing you to play the game simultaneously or use a loading screen.
  • Loading additively asynchronously: This works in the same way as asynchronous loading, but it preserves the objects from the previous level.

The differences are minor, but they can change the way ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required