How to save layout of a tilemap

Godot Version

4.2.1

Question

How can I save the layout of a tilemap to a file? I have edited this procedurally generated tilemap and I want to be able to load it again later. If I use jus the seed I lose my manually placed tiles.

There seems to be no function like tilemap.save()

Hi! Usually people save entire scenes, but as you’ve generated the tilemap, you can’t really do that. It’s a little awkward, because your actual tilemap that will run when the scene runs is different from that in the editor.

If you’re using Godot 4, could you simply copy your tilemap as a pattern, YouTube guide here - https://www.youtube.com/watch?v=m5oR2kgcFCg

1 Like

It also seems that some people have used the get_pattern and set_pattern methods to create a resource that you can save and load!

https://docs.godotengine.org/en/stable/classes/class_tilemappattern.html#class-tilemappattern

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.