Skip to content

ModelFileData beta ​

Interface of @v12-engine/editor

ts
export interface ModelFileData

A model's file as taken in: its name as it will be kept, and its bytes

Members ​

animation ​

ts
animation?: boolean;

It is an animation, not a model: clips and the bones they move, with no mesh (a Mixamo clip exported from Blender without its skin). Its name is made <name>.anim.glb, so it comes in as an animation file (animations/), which any model can play

data ​

ts
data: Uint8Array;

The file's bytes

name ​

ts
name: string;

Its file name, with its extension: tree.glb

stood ​

ts
stood?: Stood;

How it was stood as it came in (standModel): moved to its origin, made a hundredth of its size. Not there for one that was already where a game stands a model, or one that could not be read to be stood