获得徽章 0
赞了这篇沸点
赞了这篇沸点
#每天一个知识点# unity 获取鼠标点击位置
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;
//射线是否命中物体
if (Physics.Raycast(ray, out hit))
{
//射线命中的点信息
Vector3 point = hit.point;
}
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;
//射线是否命中物体
if (Physics.Raycast(ray, out hit))
{
//射线命中的点信息
Vector3 point = hit.point;
}
展开
评论
1
赞了这篇沸点
赞了这篇沸点
赞了这篇沸点
赞了这篇沸点
赞了这篇沸点
赞了这篇沸点
赞了这篇沸点
赞了这篇文章
赞了这篇文章
#码上掘金# 如果您的研究方向相符、有深耕科研/应用领域的热情、且有充足业余时间,欢迎加入我们,一同跟进前沿研究方向、探索深度学习方法的应用前景、赚取可观的自由工作佣金。
评论
2
![[呲牙]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_2.cd1e2bd.png)
![[可怜]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_5.ece2a96.png)
![[奋斗]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_29.2801857.png)
![[悠闲]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_84.10dda08.png)
![[不失礼貌的微笑]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_16.9d17f6d.png)