Unity开发备忘录000009:鼠标交互

一. 鼠标的基本事件(返回Bool值) 1. 按下事件:Input.GetMouseButtonDown()     例:if (Input.GetMouseButtonDown(0))                 Debug.Log("按下鼠标左键");   2. 抬起事件:Input.GetMouseButtonUp()     例:if (Input.GetMouseButtonUp(1
相关文章
相关标签/搜索