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 632 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 { NeedleEngineHTMLElement } = await import("./engine_element.js"); if (!NeedleEngineHTMLElement.observedAttributes.includes(name)) NeedleEngineHTMLElement.observedAttributes.push(name); } //# sourceMappingURL=engine_element_extras.js.map