Parser Error: Unexpected "Identifier" in class body

The correct Godot 4.x syntax is @onready var fog = $fog

2 Likes