Scene Scene

robot_2Generated
code_blocksInput

Description

The Scene field in the SceneTraceResult struct represents the Scene object that was involved in the trace operation. This field is part of the result data returned from a scene trace, providing context about the scene where the trace was performed.

Usage

Use the Scene field to access the Scene object associated with the trace result. This can be useful for further operations or queries within the same scene context.

Example

// Example of accessing the Scene field from a SceneTraceResult
SceneTraceResult traceResult = SceneTraceResult.From(scene, out PhysicsTraceResult physicsResult);
Scene scene = traceResult.Scene;

// Use the scene object for further operations
if (scene != null)
{
    // Perform operations with the scene
}