Skip to content

Kiln API / kiln / Model

Variable: Model ​

ts
const Model: Trait<() => AssetHandle<GLTF> | null>;

A model to show once loaded: commands.spawn(Transform, Model(res.get(Assets).gltf('ship.glb'))). When the handle is ready, the entity gets a MeshRef with a shared-geometry instance.