Description
The UseRenderMeshes
method in the SceneTrace
struct is used to specify whether the trace should consider render meshes during its operation. This can be useful for editor work where precise mesh interactions are necessary, but it may slow down performance due to the complexity of mesh calculations.
Usage
To use the UseRenderMeshes
method, call it on an instance of SceneTrace
and pass a boolean value indicating whether to include render meshes in the trace. This method returns the modified SceneTrace
instance, allowing for method chaining.
Example
// Example of using UseRenderMeshes
SceneTrace trace = new SceneTrace();
trace = trace.UseRenderMeshes(true);
// Continue setting up the trace
trace = trace.FromTo(startPosition, endPosition);
trace = trace.Run();