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.

23 lines (22 loc) 927 B
export declare enum LogType { Log = 0, Warn = 1, Error = 2 } export declare function getErrorCount(): number; /** Register callback when a new error happens */ export declare function onError(cb: (...args: any[]) => void): void; /** Unregister error callback */ export declare function offError(cb: (...args: any[]) => void): void; /** Set false to prevent overlay messages from being shown */ export declare function setAllowBalloonMessages(allow: boolean): void; /** * @deprecated Use {@link setAllowBalloonMessages} instead */ export declare function setAllowOverlayMessages(allow: boolean): void; export declare function makeErrorsVisibleForDevelopment(): void; export declare function addLog(type: LogType, message: string | any[], _file?: string | null, _line?: number | null): void; /** * Clear all overlay messages from the screen */ export declare function clearMessages(): void;