GMS 2 Output Tilemap/Tile Layer Name String In Game

How do you retrieve the name string you give tilemaps/tile layers in the room editor, and display it on the screen in game. I know we can reference them as strings and GMS 2 knows what we mean, but how do we get the program to output that name string without knowing what the tilemap/tile layer name string is already?

Edit:
Ok. This wasn't so hard. layer_get_name(layer_id) works. I was expecting a command under tilemap.
 
Last edited:
Top