TileMap Scenes Collection

Godot Version

4.3

Question

I have a tile map with TileMap Scenes Collection.
I am instantiating a scene from the tilemap using set_cell. What I would like to know is if it is possible to get that newly instantiated scene as a node?
What I specifically need is that this new scene instantiated from the tilemap receives data.
Ejemp

set_cell(layer, coords, source_id, atlas_coords, til_id)
var node = get_node(coords) #Just as an example. I get the node where it was instantiated.
node.func_data(somedata)

The instantiated node will be a child of the tilemap. This means to get the last added scene you have to retrieve the last child of the tilemap.

This also means you dont need to add it on the tilemap but can just instantiate the scene yourself and set its position to the position youd like. Just as a little sidenote

1 Like