SceneTrace WithoutTags( System.String[] tags )
SceneTrace WithoutTags( ITagSet tags )

book_4_sparkGenerated
code_blocksInput

Description

The WithoutTags method in the SceneTrace class is used to filter out entities that possess any of the specified tags. This method is useful when you want to perform a trace operation but exclude certain entities based on their tags.

Usage

To use the WithoutTags method, you need to provide an array of strings representing the tags you want to exclude from the trace results. The method returns a SceneTrace object, allowing for method chaining to further configure the trace.

Example

// Example usage of the WithoutTags method
SceneTrace trace = new SceneTrace();
trace = trace.WithoutTags(new string[] { "enemy", "obstacle" });

// Continue configuring the trace as needed
trace = trace.FromTo(startPosition, endPosition);

// Run the trace
SceneTraceResult result = trace.Run();

// Process the result
if (result.Hit)
{
    // Handle the hit
}