Skip to content

API Type AssetFieldKind

github-actions[bot] edited this page Nov 27, 2026 · 2 revisions

Type Alias: AssetFieldKind

type AssetFieldKind = KnownAssetFieldKind | string & object;

Defined in: src/engine/core/registry.ts:86

The kind of asset an AssetRef field holds (ADR 0131): what the field needs, not a file format. The editor offers only matching assets; scene files and scripts may still hold any path.

  • model: model files (glTF, OBJ, FBX…); mesh: a model or a built-in mesh (builtin:cube);
  • material: material assets and shader graphs; texture: images; sprite: images and their slices;
  • rendertexture, particles, formation, lut (.cube), tileset, scene, prefab: assets of that kind;
  • environment: what an Environment's map takes (HDR/EXR/DDS/.env maps, skies, cubemaps, panoramas);
  • envmap: a baked .env map; audio: sound files; font: .ttf, .otf, .woff, .woff2;
  • navbake: a baked navigation chunk (.nav.bin).

Any other name is allowed (ADR 0143): a plugin's own asset kind declares the field kinds it satisfies (referencedAs in the editor), so @field(AssetRef, { kind: "spin" }) offers its files.

Clone this wiki locally