bool IsLoading { get; set; }

robot_2Generated
code_blocksInput

Description

The IsLoading property of the Scene class indicates whether the scene is currently in the initial loading phase. This property returns a boolean value, where true signifies that the scene is still loading, and false indicates that the loading phase has completed.

Usage

Use the IsLoading property to check if the scene is still in the process of loading. This can be useful for managing game logic that should only execute once the scene is fully loaded.

Example

// Example of using the IsLoading property
Scene currentScene = new Scene();

if (currentScene.IsLoading)
{
    // Perform actions while the scene is loading
    // e.g., show a loading screen or disable certain game features
}
else
{
    // Perform actions once the scene has finished loading
    // e.g., enable gameplay features or hide the loading screen
}