Skip to content

validatePrefab

validatePrefab(prefab, options?): DocumentDiagnostic[]

Defined in: prefab/validate.ts:205

Validate a prefab asset end-to-end and return every problem found. Errors mean the prefab is structurally broken (flatten would misbehave or throw); warnings are suspicious but loadable (stale overrides, dangling refs). Pure + total.

PrefabData

ValidatePrefabOptions

DocumentDiagnostic[]