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

robot_2Generated
code_blocksInput

Description

The WithAllTags method in the SceneTrace struct is used to filter entities in a scene trace operation. It ensures that only entities possessing all specified tags are considered in the trace results. This method is particularly useful when you need to narrow down trace results to entities that meet multiple tag criteria.

Usage

To use the WithAllTags method, you need to provide an array of strings representing the tags that entities must have to be included in the trace results. This method is part of a fluent interface, allowing you to chain it with other trace configuration methods.

Example

// Example usage of WithAllTags method
SceneTrace trace = new SceneTrace();
trace = trace.WithAllTags(new string[] { "enemy", "active" });
SceneTraceResult result = trace.Run();

// This will only return entities that have both "enemy" and "active" tags.