destroy#

NyxCameraSharedMetadata.destroy()[source]#

Tear down the renderer and remove the on-disk scene cache.

Called by the Genesis sensor manager when the scene is destroyed. Releases the native renderer (so its CUDA buffers are freed), deletes the __nyx_cache__/<id>/ directory that holds the exported scene-description JSON plus any per-vgeom .obj files, and clears the cached references so the metadata can be garbage-collected. Safe to call exactly once; idempotency is not required.