UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.

30 lines 1.02 kB
/** * Internal registry for USDZ exporters. This is used by NeedleXRSession.start("immersive-ar") */ export var InternalUSDZRegistry; (function (InternalUSDZRegistry) { const usdzExporter = []; function exportAndOpen() { if (!usdzExporter?.length) return false; for (const exp of usdzExporter) { exp.exportAndOpen(); } return true; } InternalUSDZRegistry.exportAndOpen = exportAndOpen; function registerExporter(exporter) { usdzExporter.push(exporter); } InternalUSDZRegistry.registerExporter = registerExporter; function unregisterExporter(exporter) { if (!usdzExporter) return; const index = usdzExporter.indexOf(exporter); if (index >= 0) { usdzExporter.splice(index, 1); } } InternalUSDZRegistry.unregisterExporter = unregisterExporter; })(InternalUSDZRegistry || (InternalUSDZRegistry = {})); //# sourceMappingURL=usdz.js.map