View Tutorial Content

Implement data persistence between scenes

Tutorial
Foundational
+10 XP
20 Mins
(2534)
Overview
Live
Groups
Summary
In this tutorial, you’ll learn how to use data persistence to preserve information across different scenes by taking a color that the user selects in the Menu scene and applying it to the transporter units in the Main scene. By the end of this tutorial, you will be able to:
  • Ensure data is preserved throughout an application session by using the Unity DontDestroyOnLoad method
  • Recognize when to use static classes, singletons, and static variables to implement data persistence
  • Modify a GameObject with a script that contains the variables to be saved between Scenes
Select your Unity version
Last updated: June 10, 2021
2020.3
Language
English
Implement data persistence between scenes