- Edited
I want to randomly create a map through code, so I call the Tilemap.set_tile() function in code. My tilemap has an atlas(I think it's called that) with a single 16x16 png texture with the id:0. I haven't touched anything with layers so the layer is 0. In code I am calling:
set_tile(0, Vector2i(x,y), 0)
For some reason no tile is being "spawned". I can manually place tiles with no problem. What is going on here ?