@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.
16 lines • 587 B
JavaScript
let gltfLoader;
let gltfLoaderType = null;
export function getLoader() {
return gltfLoader;
}
export function registerLoader(loader) {
if (loader === null || loader === undefined) {
console.warn("Oh no: someone tried registering a non-existend gltf-loader. When you see this log it might mean that needle-engine is being imported multiple times. Please check your project setup.");
return;
}
if (gltfLoaderType !== loader) {
gltfLoaderType = loader;
gltfLoader = new loader();
}
}
//# sourceMappingURL=engine_gltf.js.map