0

使用以下方法抓住屏幕中心后:

screenCenter = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width / 2, Screen.height / 2, Camera.main.nearClipPlane));

我的 OnMouseDown() 事件停止触发。我该如何纠正?

我在团结2d。删除代码,onClick 事件起作用。我仍然可以看到我单击的对象,很好。这是非常奇怪的行为,这就是为什么我在这里拼命寻求帮助。

编辑:https ://github.com/chevalierc/unity-chess如果您想查看我的项目

4

0 回答 0