debug raycast unity code example Example: Debug raycasthit2d unity Debug.DrawRay(transform.position, -Vector2.up * RayLong, Color.white);