Input Axis Mouse X is not setup.
来源:互联网 发布:串口助手软件下载 编辑:程序博客网 时间:2024/06/14 00:02
当代码中调用 Input.getAxis("Mouse X")时报错
UnityException: Input Axis Mouse x is not setup.
To change the input settings use: Edit -> Project Settings -> Input
解决方案:根据提示点击Edit,Project Setting, Input到输入设置里,size增加2(我原来是13,改成15),该名称为Mouse X, Mouse Y
基本设置如下:
简单实现人物模型随鼠标移动而转动
<span style="white-space:pre">public float hSpeed = 6.0f;</span>
<span style="white-space:pre"></span>float h = hSpeed * Input.GetAxis("Mouse X"); transform.Rotate(0 , -h , 0);
根据鼠标移动返回正负值,改变人物y轴属性使人物绕y轴转动实现水平转动
0 0
- Input Axis Mouse X is not setup.
- [Unity插件]直升机控制插件[Unity问题]Input Axis Mouse X is not setup.
- 关于NGUI Input Axis Mouse ScrollWheel is not setup. 问题的解决
- 关于Unity5.0.1f1中使用NGUI3.8.2出现错误Input Axis Mouse ScrolWheel is not setup
- input button jump is not setup解决办法
- Mouse Input
- input is not valid Modified UTF-8: illegal start byte 0x**
- 3D input mouse
- Week 5a - Mouse input and more lists ----mouse input
- Getting Input from the Mouse
- linux 下input/mouse 节点
- Unity3d input axis
- ubuntu chinese input setup
- Cocos2d-x is not thread-safe
- win10 virtualbox vt x is not available
- Distinguishing Pen Input from Mouse and Touch
- JNI WARNING: input is not valid Modified UTF-8
- Vim: warning: Input is not from a terminal
- 杭电2896题 AC自动机模板题
- A. Vitaly and Night
- 网络流小结
- 收藏两篇关于theano配置和CUDA加速的博客
- Shiro使用和源码分析---5
- Input Axis Mouse X is not setup.
- 新手学EasyUI(七)----DataGrid CheckBox 动态选中
- C++基础::关于区间端点的问题
- 杭电1069--Monkey and Banana 子序列,dp
- lamp 环境搭建遇到的问题
- kworker内核工作队列详解
- codeforces GYM 100792H
- AC自动机模板
- 我的iOS学习历程 - UIView和UILabel