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.

25 lines (22 loc) 794 B
import { Object3D } from "three"; import { USDObject, USDWriter, USDZExporterContext } from "./ThreeUSDZExporter.js"; /** * Interface for USDZ Exporter Extensions used by {@link USDZExporter} */ export interface IUSDExporterExtension { /** * The name of the extension */ get extensionName(): string; /** * Called before the document is built */ onBeforeBuildDocument?(context: USDZExporterContext); /** * Called after the document is built */ onAfterBuildDocument?(context: USDZExporterContext); onExportObject?(object: Object3D, model: USDObject, context: USDZExporterContext); onAfterSerialize?(context: USDZExporterContext); onAfterHierarchy?(context: USDZExporterContext, writer: USDWriter); }