Model loading · function
recognise
What this file actually is, when it is something with no reader here.
Explained in Importing models.
function recognise(bytes: Uint8Array): Recognised | nullimport { recognise } from '@driftengine/assets';Parameters
| Parameter | Type | Description |
|---|---|---|
bytes | Uint8Array |
In depth
Returns null for anything readable, including a file whose extension is misleading — the caller then carries on and lets the real reader have it.