Skip to main content

removeAssets

@combeenation/custom-code-utils


Variable: removeAssets()

const removeAssets: (filter?, sdCtrlName?, queued) => Promise<SDUpdateQueueResult> = SdvScene.removeAssets

Removes assets from the scene.
Further information about the possible filter options can be found in ShapeDiver docs.

Parameters

filter?

SceneAssetFilter

sdCtrlName?

string

If not configured, the first shapediver instance of the configurator is used

queued?

boolean = false

true: Assets will be removed after all other pending asset updates or asset remove requests have been finished. false: Assets will be removed in the next JS cycle, no matter if other asset updates or asset remove requrests are currently pending.

Returns

Promise<SDUpdateQueueResult>