How to save Unity Tilemaps

Опубликовано: 16 Октябрь 2024
на канале: Tarodev
16,485
554

Learn how to load and save Unity tilemaps using scriptable objects.
Alternatively, I'll show you how to convert tilemaps into JSON or a compressed string so that you can easily save them to a database and allow players to create their own levels to share.

Extra: Learn how to add buttons to your unity editor scripts.


Scripts: https://bit.ly/3wLN8Sk

=========

SUBSCRIBE: https://bit.ly/3eqG1Z6




0:00 Intro
0:30 Base tile script
2:30 Tilemap Manager
3:45 Create the level scriptable object
5:00 Saving the map
11:00 Adding buttons to the editor
14:00 Clearing the map
15:45 Loading the map
21:00 Saving to JSON
22:40 Manual serialization for compression