1. 程式人生 > >unity中2D模式下的射線

unity中2D模式下的射線

RaycastHit2D hit = Physics2D.Raycast(Camera.main.ScreenToWorldPoint(Input.mousePosition),Vector2.zero);