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 633 B
/* DO NOT IMPORT ENGINE_ELEMENT FROM HERE */ /** * Call with the name of an attribute that you want to receive change events for * This is useful for example if you want to add custom attributes to <needle-engine> * Use the addAttributeChangeCallback utility methods to register callback events */ export async function registerObservableAttribute(name) { const { NeedleEngineWebComponent } = await import("./needle-engine.js"); if (!NeedleEngineWebComponent.observedAttributes.includes(name)) NeedleEngineWebComponent.observedAttributes.push(name); } //# sourceMappingURL=needle-engine.extras.js.map