I wanted to print some tilemap related data for debugging purposes, and I ran into a snag in this one piece of data which I can't figure out how to retrieve.
With TileSet.get_custom_data_layers_count() I can get the number of custom data layers, and then retrieve each value for a tile with TileData.get_custom_data_by_layer_id(layer_id: int). But I can't find way to retrieve the names of the custom layer.
I was hoping there would be something like get_custom_data_layer_name or get_custom_data_name but I can't find anything in the documentation.
Has anyone found a way to accomplish this?
I'm using Godot 4.
Thanks in advance
![The Ultimate Showdown! Rocket vs. Captain Marvel's Cat [Captain Marvel(2014) #2]](/api/ImgurImages?id=QxWPAWv.jpg)