Skip to content

@modoki/engine / index / REF_FIELDS_BY_TRAIT

Variable: REF_FIELDS_BY_TRAIT

const REF_FIELDS_BY_TRAIT: Record<string, string[]>

Asset-reference fields, keyed by the trait they live on. A value in one of these fields must be a GUID or an external URL — never a project-internal asset path (/games/x/foo.mesh.json). This is the single source of truth; editor/scene/serialize.ts imports it for its save-time guard.

Built with Modoki.