cocos_validate_scene
Validate scene file structure to detect reference errors and linkage issues before building, ensuring compatibility and preventing runtime problems.
Instructions
Sanity-check a scene file: ref ranges, type tags, parent linkage.
Returns {valid: bool, object_count: int, issues: [...]}. Run this
after building a scene to catch dangling id references before
invoking cocos_build.
NOTE: structural-only. To check whether the scene's components
match the project's enabled engine modules (the "build succeeds
but RigidBody2D doesn't work" class of bugs), also call
cocos_audit_scene_modules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes |