据说好像是用了射线,
Collider2D[] col = Physics2D.OverlapPointAll(Camera.main.ScreenToWorldPoint(Input.mousePosition ));
据说好像是用了射线,
Collider2D[] col = Physics2D.OverlapPointAll(Camera.main.ScreenToWorldPoint(Input.mousePosition ));
本文标题:unity获取点击的碰撞体
本文链接:https://www.haomeiwen.com/subject/hvsodftx.html
网友评论