https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html
Godot notifications — Godot Engine (stable) documentation in English
Every Object in Godot implements a_notification method. Its purpose is to allow the Object to respond to a variety of engine-level callbacks that may relate to...
godot notificationsin englishenginestabledocumentation