I know I can use
get_tree().get_root()
or
get_node('/root')
to get the root of my entire tree.
How can I get the root node of the scene that my current node is in?
I dont want to
get_parent().get_parent()...etc
etc and I also dont want to
get_node('../../..')
because I don't know how deep this node is into the tree.
I've been searching but haven't found a clean way to do this. An unclean way that will work is by placing on my SceneRoot node:
scene_root = self
and then on every node in the scene:
scene_root = get_parent().scene_root
but this is tedious to add to every single node I make.