Back to Browse

Unity Scenes 2: Keeping Objects When Changing Scenes (DontDestroyOnLoad)

40.8K views
Oct 13, 2021
5:49

How to keep objects from being unloaded when loading a new scene. Note: this video was made before Unity started showing DontDestroyOnLoad objects separately in the hierarchy, which is why this looks a bit different than what you see in the editor. Everything discussed here is still valid, but now you don't need to check the GameObject's scene property to see which scene it's in.

Download

1 formats

Video Formats

360pmp47.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Unity Scenes 2: Keeping Objects When Changing Scenes (DontDestroyOnLoad) | NatokHD