my question is, why created “instance0” is not child of “board.go” when it just created?
And why “go.set_parent(tile_id, board_id)” doesn’t do nothing here?
It is by design. For some games it might make sense to have the spawned object a child of the factory component but for others it doesn’t make sense at all (like bullets being fired from a weapon).
This is actually an asynchronous operation. The game object will not become a child until the next frame. (and yes we do not explain this in the documentation, I will make sure this gets updated)
No, by “where to spawn” I meant making them children of some specific gameObject.
e.g in my case I would like say to factory to spawn “tiles.go” in to “board.go” by default.
But this is only suggestion.