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.

14 lines (12 loc) 224 B
export function safeInvoke(fun, args) { try { if (args) fun(args); else fun(); } catch (err) { console.error(err); return false; } return true; }