#help for @onready

4 messages · Page 1 of 1 (latest)

young torrent
#

You need to pay attention if it's upper or lower case

#

Pro tip:
If you use type-hinting your editor will try to autocomplete and suggest available names
@onready var sprite: Sprite2D = $Sprite2D

#

Now when you type sprite. it'll show you a list of all available properties and functions