Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Recursively dispose obj and every descendant, removing each child from its parent as it walks. Disposes geometry and material(s) on Mesh and InstancedMesh instances; non-renderable Object3Ds (Group / Object3D / Light) are walked through but contribute nothing to dispose themselves.

      The walk is depth-first by always disposing children[0] until the children array is empty — the same shape clearSceneContent had inline. This avoids re-indexing after each removal.

      Parameters

      • obj: Object3D

      Returns void