Entering a scene tree (beginner question)

Godot Version

4.5.1

Question

In the documentation, it says “When the node enters the Scene Tree”. When does that happen? Is it when add_child() is called on the node? Are there other ways it can enter a scene tree?

It also enters the tree at startup, or at scene change.

Note that add_child() won’t trigger the tree entering event if the parent is not in the tree.