摘要:
在Unity项目中,假设在鼠标按键时会触发游戏内的操作,但是在鼠标与UI进行交互时我们希望停止游戏中的操作,这是需要使用EventSystem中的方法来检测鼠标是否正在与UI交互 private bool InteractWithUI() { if (EventSystem.current != n 阅读全文
posted @ 2022-11-17 18:21
强悍の绝巴哈
阅读(524)
评论(0)
推荐(0)
|
摘要:
在Unity项目中,假设在鼠标按键时会触发游戏内的操作,但是在鼠标与UI进行交互时我们希望停止游戏中的操作,这是需要使用EventSystem中的方法来检测鼠标是否正在与UI交互 private bool InteractWithUI() { if (EventSystem.current != n 阅读全文
posted @ 2022-11-17 18:21
强悍の绝巴哈
阅读(524)
评论(0)
推荐(0)
|