How to Make a SAVE & LOAD System in Unity!

Published: 26 April 2024
on channel: Kozmobot Games
1,690
41

In this video, you will learn how to save your game progress in Unity. This video will involve C# programming and using JSON Utility for storing game data. The saved data can be stored in a .json file and will be loaded or saved by pressing a button.

Many people who make games in Unity usually save values with PlayerPrefs. The problem is, that system is only used for saving player preferences like game settings. It is not designed for some very complex data like game states or scenes with hundreds of scripts with their own number and string values.

To save your game in Unity, you need to make sure to add a player data manager. Unlike game manager and score manager scripts, this script will be used only for storing data. It does not make gameplay better, it just stores all the values that every game needs to save for later use. The values - player position, health and score are part of the player data script that does not have MonoBehavior, it is simply a serializable script.

The save and load are the public voids that the buttons need to add in order to save or load the game.

Support the Creator of Kozmobot on the social networks!

CHECK OUT MY WEBSITE: http://kozmobot.com

INSTAGRAM:   / kozmobot.channel  

TIKTOK:   / kozmobot.channel  


Watch video How to Make a SAVE & LOAD System in Unity! online without registration, duration hours minute second in high quality. This video was added by user Kozmobot Games 26 April 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,69 once and liked it 4 people.