pointerHit method

RayHit? pointerHit(
  1. Ray ray,
  2. LayerMask layers
)

What ray, cast from the camera through a finger, hits of what the system holds within layers, or null: the input takes the nearest of the world's World.raycast and every system's, so a package can make what has no mesh tappable (physics: its colliders).

Implementation

RayHit? pointerHit(Ray ray, LayerMask layers) => null;