Search Docs
Loading...
Skip to content

Interface: ApplyAssetOptions

Options for applying an asset to the scene.

Indexable#

[key: string]: unknown

Additional custom context options. Allows passing arbitrary data to middleware for custom placement logic.

Properties#

Property Type Description
clipType? "clip" "overlay"
placement? AssetPlacement Where the created block is placed. An asset source that was registered with its own applyAsset implementation ignores it.
abortSignal? AbortSignal Stops the apply when it aborts, and the promise rejects. The engine stops the download that its default apply waits for, so no block is created. An asset source with its own applyAsset implementation keeps running: a block that it creates stays, and the call does not return it.