abstractEngine.loadingScreen.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930
  1. import type { ILoadingScreen } from "../../Loading/loadingScreen";
  2. declare module "../../Engines/abstractEngine" {
  3. interface AbstractEngine {
  4. /**
  5. * Display the loading screen
  6. * @see https://doc.babylonjs.com/features/featuresDeepDive/scene/customLoadingScreen
  7. */
  8. displayLoadingUI(): void;
  9. /**
  10. * Hide the loading screen
  11. * @see https://doc.babylonjs.com/features/featuresDeepDive/scene/customLoadingScreen
  12. */
  13. hideLoadingUI(): void;
  14. /**
  15. * Gets or sets the current loading screen object
  16. * @see https://doc.babylonjs.com/features/featuresDeepDive/scene/customLoadingScreen
  17. */
  18. loadingScreen: ILoadingScreen;
  19. /**
  20. * Sets the current loading screen text
  21. * @see https://doc.babylonjs.com/features/featuresDeepDive/scene/customLoadingScreen
  22. */
  23. loadingUIText: string;
  24. /**
  25. * Sets the current loading screen background color
  26. * @see https://doc.babylonjs.com/features/featuresDeepDive/scene/customLoadingScreen
  27. */
  28. loadingUIBackgroundColor: string;
  29. }
  30. }