Add Or Remove Tiles From TileMapLayer Via Code

Godot Version

4.7.stable

Question

I’m wanting to make a platformer with a built-in level editor, so I’m wondering how to make it so that you can add or remove tiles from a tilemaplayer via code.

All help appreciated. Thanks.

TileMapLayer’s set_cell method does this.

Thanks!