Unity3D基本操作3

鼠標、鍵盤輸入 1,鍵盤輸入 .獲取鍵盤輸入 1.相關代碼 Input.GetKey(); //按下某鍵後,持續返回 true Input.GetKeyDown(); //按下某鍵的一瞬間,返回 true Input.GetKeyUp(); //擡起某鍵的一瞬間,返回 true 返回值:true 參數:KeyCode枚舉(Enum) 2,鼠標輸入 相關代碼 Input.GetMouseButton
相關文章
相關標籤/搜索