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 tracedScene = traceResult.Scene;
// Use the tracedScene for further operations
if (tracedScene != null)
{
// Perform operations with the traced scene
}