Pulse Works Studio

Parse Error: Identifier "Spatial" not declared in the current scope. Did you mean to use "Node3D"?

Spatial was renamed to Node3D. Any script that extends Spatial fails to parse.

Cause

Godot 4 shortened the 3D node names. Spatial became Node3D, and its transform members were renamed at the same time (translation is position, for example). The class itself is what this error is reporting.

Fix

extends Node3D

func _ready() -> void:
	position = Vector3(0, 1, 0)

Related

Godot Dev Tools is a Pulse Works Studio project. All error explainers.