GameResource Source { get; set; }

robot_2Generated
code_blocksInput

Description

The Source property of the Scene class provides access to the GameResource associated with the scene. This resource typically contains data or assets that are used within the scene, such as textures, models, or other game-related content.

Usage

To access the Source property, you need to have an instance of the Scene class. Once you have the instance, you can retrieve the GameResource by simply accessing the Source property.

Example

// Assuming 'scene' is an instance of Sandbox.Scene
Sandbox.GameResource resource = scene.Source;

// Use the resource as needed
if (resource != null)
{
    // Perform operations with the resource
}