Interaction.Raycast
Raycast(Ray, out UIBlockHit, float, int)
Performs a raycast against all active UIBlocks in the scene and retrieves a UIBlockHit for the top-most-rendered UIBlock colliding with the provided ray
.
Remarks
Performed by the Nova Input System, independent of the UnityEngine.Physics and UnityEngine.Physics2D systems.
Declaration
public static bool Raycast(Ray ray, out UIBlockHit blockHit, float maxDistance = InfinityF, int layerMask = -1)
Parameters
Type | Name | Description |
---|---|---|
Ray | ray | The ray, in world space, to cast |
UIBlockHit | blockHit | A UIBlockHit for the top-most-rendered UIBlock colliding with the provided |
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". |
Returns
Type | Description |
---|---|
bool | true if any UIBlock (on the |