Description
The ShowLoadingScreen
property of the SceneLoadOptions
class determines whether a loading screen should be displayed when a scene is being loaded. This can be useful for providing visual feedback to the user during potentially long loading operations.
Usage
To use the ShowLoadingScreen
property, create an instance of the SceneLoadOptions
class and set the property to true
or false
depending on whether you want the loading screen to be shown.
Example
// Create a new instance of SceneLoadOptions
SceneLoadOptions loadOptions = new SceneLoadOptions();
// Set the ShowLoadingScreen property to true to display a loading screen
loadOptions.ShowLoadingScreen = true;
// Load a scene with the specified options
SceneFile sceneFile = new SceneFile("path/to/scene");
loadOptions.SetScene(sceneFile);