0 votes

I am a beginner and i don't understand how _ready(): works!

Godot version 3.5.1
in Engine by (12 points)

2 Answers

+1 vote

TL;DR

_ready() is called when the node and its children have all been added to the scene tree and are ready.

See https://kidscancode.org/godot_recipes/3.x/basics/tree_ready_order/ for a detailed explanation

by (1,122 points)
+1 vote

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.

by (2,017 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.