Idk how to delete this post - I found my solution.
If anyone’s insterested:
I’m using a tileset to make an action platformer and wanted to make a sort of grind rail mechanic.
I created a Path2D with a tool script. In the editor, in _process, it iterates through every point in the path and snaps them adjacent, aligned with the tilemap’s grid. Then at runtime on _ready, it paints a tile at each point’s position.
I originally wanted the tile painting to happen in the editor but couldn’t find a reliable way to erase tiles. For now this method is enough because I can see the paths visually while I edit the level.