[EDIT: solved the issue by accessing player child node with a singleton setted in project settings > autoload (Global)
var player_node = null
in player :
Global.player_node = self
So you can access player child with :
that way, even if the player is not fully loaded in the scene, you will not get null instance errors in _draw()]
Hello everybody !
I have a node that need a player child postition to draw some gui around it.
Problem is, the draw function seem to get called before everything else in the scene. So my player has not finished loading every children and the draw function is called anyway.
I search an efficient way of disabling the draw process (something like set_draw(false)).
Because for now it uses an if statement at each draw call which is not very optimized and stable...
I have signals set up to manage such a function.
Thanks for your time