I am using a tilemap to generate a random map in code. The function set_cell() worked for placing atlas tiles, but for packed scenes it doesn't seem to be working. I have only the layer 0 and a packedscene in my tileset with the id 2. So calling:
set_cell(0, Vector2i(0,0), 2, Vector2i(0,0))
Should place an instance of my scene at position (0,0).
But it doesn't.
What could the problem be ?