bool WantsSystemScene { get; set; }

robot_2Generated
code_blocksInput

Description

The WantsSystemScene property of the Scene class determines whether the system scene should be additively loaded when the current scene is loaded. By default, this property is set to true, meaning the system scene will be loaded alongside the current scene. This behavior can be disabled for specific scenes, such as menu scenes, where the system scene is not required.

Usage

To use the WantsSystemScene property, simply access it from an instance of the Scene class. You can set it to false if you want to prevent the system scene from being loaded with the current scene.

Example

// Example of setting the WantsSystemScene property
Scene myScene = new Scene();

// Disable loading of the system scene
myScene.WantsSystemScene = false;

// Check if the system scene will be loaded
bool willLoadSystemScene = myScene.WantsSystemScene;
// Output: false