Add_child to root bug

MagicLordMagicLord Posts: 487Member

Hi there,

Once an object is instanced and added to the scene it's position is changed to player position.

When i choose the scene root ("level") to add the instance (add_child), there is no instance visible
while choosing ("anotherspatial ") , the instance is visible, This is a bug right ?
->level
-> Player
-> anotherspatial

scene_root_not_working = get_tree().get_root().get_node("level");
scene_root_working = get_tree().get_root().get_node("level").get_node("anotherspatial");

Answers

  • kryzmakkryzmak Posts: 42Member

    Seems correct to me and it should work that way. Do you have more details like a code example?

  • MagicLordMagicLord Posts: 487Member

    I think this is a bug, i'll upload a test scene.

Sign In or Register to comment.