Hello, I watched the tutorial with showing names in the score panel. Is it right that we use onready when we want to store a child node in a variable, when all child nodes are ready? Best regards!
You're correct! Any variable at the top of the script with the onready keyword is evaluated/runs right at the start of the ready function.
Thank you! Can I say it will store a child node when the scene is ready? Or should I say it will get the a child node in a variable, when the onready function is running?
You could say that an onready variable will execute its code when the node to which you attached the script is "ready". And, when we say that a node is "ready" in Godot, it means that Godot is calling that node's _ready() function.