@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 (14 loc) • 415 B
JavaScript
import { showBalloonMessage } from "@needle-tools/engine";
try {
// communicate via vite
if (import.meta.hot) {
// listen to needle-reload event
import.meta.hot.on('needle:reload', (evt) => {
console.log("Received reload event");
showBalloonMessage("Detected files changing\npage will reload in a moment");
});
}
}
catch {
// ignore
}