If you have any problems, check out the updated version (after watching this one): • Let's really fix: Saving and Loading ...
When you create a level for your game, Unity will save it automatically. But what if there will be changes during runtime or even better, the player creates a big part of the tilemap? Well then you need to save it on your own. But don't worry, creating a basic saving and loading system is quite easy.
If you watched my tutorial about storing data with JSON files, you are perfectly prepared for this, because this is basically what we will do.
We are going to save all the tilemaps inside the scene as a JSON file. On loading we read this file and write the data back to the tilemaps. Sounds simple, doesn't it?
=========
My FileHandler Script: https://tinyurl.com/FileHandler
💻 CODE: https://github.com/MichelleFuchs/Savi...
This GitHub Repo already includes the changes made in the updated version ( • Let's Fix: Saving and Loading Tilemap... ).
💬 DISCORD: / discord
❤ SUPPORT ME: / velvary
🎮 PLAY MY GAMES: https://velvary.itch.io/
🦜 TWITTER: / velvary1
💡 ...MORE TUTORIALS: / velvarygames
=========
Timestamps:
00:00 - The Current Setup - InGame Tilemap Editing Tutorial
00:40 - Adding Two Buttons for Saving and Loading
01:01 - Creating the SaveHandler script
03:34 - Changing the "Script Execution Order"
04:22 - Add the OnClick Event to the Buttons
04:55 - Creating the onSave Method
12:47 - Inspecting the Saved File
14:07 - Creating the onLoad Method
16:35 - Thank Your for Watching :)
Watch video Saving and Loading Tilemaps - Unity Tutorial online without registration, duration hours minute second in high quality. This video was added by user Velvary 06 November 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,818 once and liked it 182 people.