Model interface
A glTF owned by the cache.
import type { Model } from '@dioramajs/diorama/assets'Place instances and never dispose their resources.
interface ModelMembers
| Name | Type | Description |
|---|---|---|
readonly animations | readonly AnimationClip[] | Animation clips of the file. |
readonly scene | Group | The loaded scene. Place instances, not this group. |
instance | | A clone sharing geometry, materials and textures (SkeletonUtils for skinned). The shared resources carry |
Also exported from @dioramajs/assets.
Defined in packages/assets/src/types.ts.