Skip to content

SkinInstance.dispose

Summary

SkinInstance.dispose destroys the instance's GPU bone buffer, clears its bind group, and frees its 16-value Wasm bind-matrix allocation. The call is idempotent.

The parent Skin has a separate lifetime and must be disposed independently. After instance disposal, guarded members such as bindMatrixPtr and jointCount throw.

Syntax

SkinInstance.dispose(): void
instance.dispose();

Returns

void

See Also