Validate References
validate_referencesValidate Unity ObjectReference fields under a scene path, reporting broken or missing references with error counts. Use depth and verbose options for targeted checks.
Instructions
Validate all ObjectReference fields under path recursively. Returns [ERROR]/[MISSING] for broken refs. Summary: "N ERROR, M OK". Use depth=1 for quick top-level scan, depth=3-5 for full subtree. verbose=True also shows [OK] lines (off by default to save tokens). ignore_optional=True skips fields marked [Optional] (reduces noise).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Scene path to target GameObject (e.g. /Parent/Child) | |
| depth | No | Maximum hierarchy depth to traverse | |
| verbose | No | ||
| ignore_optional | No |