Interaction.RaycastAll
RaycastAll(Ray, List<UIBlockHit>, float, int)
Performs a raycast against all active UIBlocks in the scene and populates the provided list with UIBlockHits for all UIBlocks intersecting with the provided ray
.
Remarks
Performed by the Nova Input System, independent of the UnityEngine.Physics and UnityEngine.Physics2D systems.
Declaration
public static void RaycastAll(Ray ray, List<UIBlockHit> hitsToPopulate, float maxDistance = InfinityF, int layerMask = -1)
Parameters
Type | Name | Description |
---|---|---|
Ray | ray | The ray, in world space, to cast |
List<UIBlockHit> | hitsToPopulate | The list to populate with all UIBlockHit collisions, sorted by top-most-rendered (at index 0). |
float | maxDistance | The max distance from the ray origin (in world space) to consider an intersection point a "hit". |
int | layerMask | The gameobject layers to include, defaults to "All Layers". |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | if |