annotation OnReady

Overview

Automatically initializes a node property when _ready is called by querying the scene tree.

@[OnReady("Sprite2D")]
property sprite : Godot::Node2D? = nil

Defined in:

libgodot/macros.cr