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 :)
Смотрите видео Saving and Loading Tilemaps - Unity Tutorial онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Velvary 06 Ноябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 6,818 раз и оно понравилось 182 людям.