This is the testing Godot forums! All forum posts unique to this forum will be deleted! Please use the main forums here for any posts you want to keep. All forum rules still apply.

Add_child to root bug

MagicLordMagicLord Posts: 578Unconfirmed

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 ?
-> 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");


  • kryzmakkryzmak Posts: 109Member

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

  • MagicLordMagicLord Posts: 578Unconfirmed

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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.