removeExtension

external fun removeExtension(gltf: Any, extension: String): Any(source)

Removes an extension from gltf.extensions, gltf.extensionsUsed, gltf.extensionsRequired, and any other objects in the glTF if it is present.

Return

The extension data removed from gltf.extensions.

Parameters

gltf

A javascript object containing a glTF asset.

extension

The extension to remove.

See also