Pre-build checks
Catch broken scenes before you ship
Every scene is loaded and instantiated before the build, along with any rules your scripts declare.
- 01
Every scene loads
A broken path, a missing dependency or a renamed script is an error naming the file.
- 02
Every scene instantiates
Catches scripts that fail when the scene is created, not only when it loads.
- 03
Your rules run
Any node that declares validation conditions has them checked.
- 04
Errors stop the build
Warnings are recorded and do not block.
Add your own rules
One method. A node that has it gets checked.
extends Node3D
@export var spawn_point: Node3D
func _get_validation_conditions() -> Array:
return [
{
"condition": spawn_point != null,
"message": "Spawn point is not assigned",
"severity": "error",
},
]Severity is error, warning or info. The report names the file and the node.
The report
- Passed, failed, error and warning counts
- Each problem with its message, file, line and node
- Likely causes, grouping problems that come from the same file
- Saved with the build, so an old build still has its report
Godot only. It uses Godot’s own scene loader.