UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

18 lines (17 loc) 359 B
import { getApplication } from "./globals.js"; let _createdLoadingScreen = false; const script = { // set during script load to be used for initializing script app: null, createLoadingScreen(callback) { if (_createdLoadingScreen) { return; } _createdLoadingScreen = true; const app = getApplication(); callback(app); } }; export { script };