API ReferenceSandbox.Engine.Utility.RayTrace

MeshTraceRequestclass

object→MeshTraceRequest
Namespace
Sandbox.Engine.Utility.RayTrace
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.Engine.Utility.RayTrace.MeshTraceRequest

Methods8

Showing 8 methods

public Sandbox.Engine.Utility.RayTrace.MeshTraceRequest.Result Run()PUBLIC

Run the trace and return the result. The result will return the first hit.

Returns:Result—

public Sandbox.Engine.Utility.RayTrace.MeshTraceRequest WithAllTags(string[] tags)PUBLIC

Only return scene objects with all of these tags

ParameterTypeDescription
tagsstring[]—
Returns:MeshTraceRequest—

public Sandbox.Engine.Utility.RayTrace.MeshTraceRequest WithAnyTags(string[] tags)PUBLIC

Only return scene objects with any of these tags

ParameterTypeDescription
tagsstring[]—
Returns:MeshTraceRequest—

public Sandbox.Engine.Utility.RayTrace.MeshTraceRequest WithoutTags(string[] tags)PUBLIC

Only return scene objects without any of these tags

ParameterTypeDescription
tagsstring[]—
Returns:MeshTraceRequest—

public Sandbox.Engine.Utility.RayTrace.MeshTraceRequest WithTag(string tag)PUBLIC

Only return scene objects with this tag. Subsequent calls to this will add multiple requirements and they'll all have to be met (ie, the scene object will need all tags).

ParameterTypeDescription
tagstring—
Returns:MeshTraceRequest—

On this page