The .drft container · interface

DrftHead

What HEAD says about the asset as a whole.

Explained in The .drft container.

interface DrftHead
import type { DrftHead } from '@driftengine/drft';

Properties

NameTypeDescription
namereadonlystringThe asset's own name, for diagnostics. Never load-bearing.
generatorreadonlystringWhat wrote it — tool and version — so a bad bake can be traced to its baker.
unitScalereadonlynumberMetres per unit in the source. 1 for an asset already authored in metres.
boundsreadonlyreadonly number[]Axis-aligned bounds of everything, in this file's units: min x/y/z then max x/y/z.