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.

12 lines (11 loc) 764 B
import "./codegen/register_types.js"; import { Object3D } from "three"; import { type GLTF } from "three/examples/jsm/loaders/GLTFLoader.js"; import { SerializationContext } from "./engine_serialization_core.js"; import { Context } from "./engine_setup.js"; import type { IComponent, SourceIdentifier, UIDProvider } from "./engine_types.js"; import { NEEDLE_components } from "./extensions/NEEDLE_components.js"; export declare function writeBuiltinComponentData(comp: IComponent, context: SerializationContext): object | null; export declare function createBuiltinComponents(context: Context, gltfId: SourceIdentifier, gltf: GLTF & { children?: Array<Object3D>; }, seed?: number | null | UIDProvider, extension?: NEEDLE_components): Promise<void>;