Skip to content

Documentation / scene / ModelFetchOptions

Type Alias: ModelFetchOptions

ModelFetchOptions = BaseFetchOptions & object

Defined in: libs/scene/src/asset/assetmanager.ts:110

Options for model fetching.

Provides decoding and instancing hints used by supported model loaders.

Type Declaration

mimeType?

optional mimeType?: string

Explicit MIME type hint for the model. If omitted, inferred from file extension via VFS.

dracoDecoderModule?

optional dracoDecoderModule?: DecoderModule

Optional Draco decoder module for compressed geometry decoding.

enableInstancing?

optional enableInstancing?: boolean

If true, the created scene node may be prepared for instanced rendering (engine-dependent). Default is false.

loadMeshes?

optional loadMeshes?: boolean

If true, meshes will be loaded from this model. Default is true.

loadSkeletons?

optional loadSkeletons?: boolean

If true, rigs and skin bindings will be loaded from this model. Default is true.

loadAnimations?

optional loadAnimations?: boolean

If true, animations will be loaded from this model. Default is true.

loadJointDynamics?

optional loadJointDynamics?: boolean

If true, automatically create joint dynamics (for VRM models only). Default is true.

postProcess?

optional postProcess?: (model) => SharedModel

Optional post-process callback applied to the loaded SharedModel before creating nodes. Use this to remap materials, merge meshes, or apply custom data transforms.

Parameters

model

SharedModel

Returns

SharedModel

Released under the MIT License.