Difference between editor scene and runtime scene

Godot Version

4.3

Question

are the scene hirachy in editor and runtimes different when i am using autoloaded classes?

so i have always use this :

get_tree().game.get_node("node_name")

i use GameManager class as autoload/global

in editor scene like :

game
   -> node
       -> other node

runtime :

root
   -> GameManager
   -> game
      ->node
         -> other node
  

Autoloads will always be immediate children of the root. Was that your question?

root
ā†’ autoload1
ā†’ autoload2
ā†’ node1 (added via get_tree().root.add_child)
ā†’ node2 (added via get_tree().root.add_child)
ā†’ main scene (as defined in project settings)

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.