Unity射线检测
Unity2d射线检测
Unity3d射线检测
将射线显示出来
Debug.DrawRay(transform.position, Vector2.down * 0.11f, Color.red); RaycastHit2D hit = Physics2D.Raycast(transform.position, Vector2.down, 0.15f, 1 << 8);标签:检测,Vector2,transform,down,射线,Unity From: https://www.cnblogs.com/nyan/p/17697431.html