Setget Triggers before the node is ready

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By IHate

I have a bunch of export variables with setget functions when the scene runs the debugger complains that the Node I want to change is a null instance. I have the nodepaths of my nodes stored in a const dictionary but even thought I can print the nodepath in the setget function and is correct, get_node(nodepath) is returning null.

So I figured that setget is triggering before the node is ready and I fixed it using yield(self,“ready”) on every setget function but I don’t like this solution is there any other way to achieve this?