Godot Engine

Godot Engine

Checkov 2 marca 2018 o 12:48
get_tree().get_root() issue
Hello! I'm having issues calling get_tree().get_root() in one of my scripts. (it runs perfectly well in all of my other scripts). It tells me that get_tree() returns null. Has anyone had a similar issue?
< >
Wyświetlanie 1-2 z 2 komentarzy
Akien  [producent] 2 marca 2018 o 13:50 
I guess that this would happen if the node to which you attached that script is actually not in the scene tree. It can happen if you removed it from the scene tree with remove_child, or if you instantiated it from another script, but forgot to use add_child to actually add it as a child of a node of your scene tree.
Checkov 2 marca 2018 o 14:47 
Someone explained it on the Facebook page. I was calling it before I used add_child
Ostatnio edytowany przez: Checkov; 2 marca 2018 o 14:48
< >
Wyświetlanie 1-2 z 2 komentarzy
Na stronę: 1530 50

Data napisania: 2 marca 2018 o 12:48
Posty: 2