English
Type Alias: InstancePackProvider
InstancePackProvider = (
name,hash) =>Uint8Array|null|undefined|Promise<Uint8Array|null|undefined>
Defined in: packages/ssplayer-core/dist/index.d.ts:2982
Host-supplied resolver for instance-referenced animation packs. Given the referenced pack's name and name-hash, returns the pack's raw SSAB bytes, or null/undefined to fall back to fetching <base>/<name>.ssab. Use this when packs are not URL-addressable (e.g. drag-and-drop / in-memory bundles); the host is then also responsible for loading those packs' textures (by cell-map hash) into the shared ResourceManager before setAnimation.
Parameters
name
string
hash
number
Returns
Uint8Array | null | undefined | Promise<Uint8Array | null | undefined>