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

robot_2Generated
code_blocksInput

Description

The WithAllTags method in the SceneTrace class 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, call it on an instance of SceneTrace and pass an array of strings representing the tags you want to filter by. The method returns a SceneTrace object, allowing for method chaining to further configure the trace.

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.