Class DefaultLoadingScreen
Implements
Constructors
constructor
-
new DefaultLoadingScreen(
_renderingCanvas: HTMLCanvasElement,
_loadingText?: string,
_loadingDivBackgroundColor?: string,
): DefaultLoadingScreenCreates a new default loading screen
Parameters
- _renderingCanvas: HTMLCanvasElement
defines the canvas used to render the scene
- _loadingText: string = ""
defines the default text to display
- _loadingDivBackgroundColor: string = "black"
defines the default background color
Returns DefaultLoadingScreen
- _renderingCanvas: HTMLCanvasElement
Properties
StaticDefault Logo Url
DefaultLogoUrl: string = ""
Gets or sets the logo url to use for the default loading screen
StaticDefault Spinner Url
DefaultSpinnerUrl: string = ""
Gets or sets the spinner url to use for the default loading screen
Accessors
loading UI Background Color
-
get loadingUIBackgroundColor(): string
Gets or sets the color to use for the background
Returns string
-
set loadingUIBackgroundColor(color: string): void
Gets or sets the color to use for the background
Parameters
- color: string
Returns void
loading UI Text
-
get loadingUIText(): string
Gets or sets the text to display while loading
Returns string
-
set loadingUIText(text: string): void
Gets or sets the text to display while loading
Parameters
- text: string
Returns void
Class used for the default loading screen
See
https://doc.babylonjs.com/features/featuresDeepDive/scene/customLoadingScreen