标签:img 测试 alt 分享 技术分享 debug bug button deb
unity文档中提到 轴的 ID 是5和6,但是测试后发现,ID是6和7,很坑
1 void Update () { 2 if (Input.GetKeyDown(KeyCode.JoystickButton0)) { 3 Debug.Log ("确定"); 4 } 5 if (Input.GetKeyDown(KeyCode.JoystickButton1)) { 6 Debug.Log ("返回"); 7 } 8 Debug.Log (Input.GetAxis("OculusRL")); 9 Debug.Log (Input.GetAxis("OculusUD")); 10 }
标签:img 测试 alt 分享 技术分享 debug bug button deb
原文地址:http://www.cnblogs.com/Jason-c/p/7229052.html