Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | PHONK |
I am a beginner and i don’t understand how _ready(): works!
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | PHONK |
I am a beginner and i don’t understand how _ready(): works!
Reply From: | Ninfur |
TL;DR
_ready()
is called when the node and its children have all been added to the scene tree and are ready.
See Understanding tree order :: Godot 3 Recipes for a detailed explanation
Reply From: | magicalogic |
When a scene is first loaded, this function is called. It is only called once. Use it to initialize variables or any other initializations you need.
Yo no sé cómo funciona eso me hablaste chino