@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.
26 lines (25 loc) • 1.03 kB
TypeScript
import { AssetReference, type ProgressCallback } from "../engine/engine_addressables.js";
import { Behaviour } from "../engine-components/Component.js";
/** The nested gltf is a component that is used to load a gltf file when the component becomes active (start)
* It will load the gltf file and instantiate it as a child of the parent of the GameObject that has this component
*/
export declare class NestedGltf extends Behaviour {
/**
* A reference to the gltf file that should be loaded
*/
filePath?: AssetReference;
/**
* EXPERIMENTAL for cloud asset loading
*/
loadAssetInParent: boolean;
private _isLoadingOrDoneLoading;
/** Register a callback that will be called when the progress of the loading changes */
listenToProgress(evt: ProgressCallback): void;
/** Begin loading the referenced gltf file in filePath */
preload(): void;
/** @internal */
start(): Promise<void>;
/** @internal */
onDestroy(): void;
private hash;
}