查看: 1103|回复: 0
打印 上一主题 下一主题

[Unity 组件参考手册]组件:管理器设置之输入管理器

[复制链接]
.    

3797

主题

11

听众

5万

积分

首席设计师

Rank: 8Rank: 8

纳金币
32328
精华
41

活跃会员 优秀版主 荣誉管理 论坛元老

跳转到指定楼层
楼主
发表于 2013-1-31 22:03:01 |只看该作者 |倒序浏览
【Desktop】 The Input Manager is where you define all the different input axes and game actions for your project.输入管理器可以设置项目的各种输入和操作。
The Input Manager 输入管理器To see the Input Manager choose: Edit->roject Settings->Input.输入管理器位于菜单的Edit->roject Settings->Input.
【Properties 属性】    Axes 轴
    Contains all the defined input axes for the current project: Size is the number of different input axes in this project, Element 0, 1, ... are the particular axes to modify.
    设置当前项目中的所有输入轴:size为轴的数量。0,1…元素可以对每个轴进行修改。
    Name 名称
    The string that refers to the axis in the game launcher and through scripting.
    轴的名称,用于游戏加载界面和脚本中。
    Descriptive Name 描述
    A detailed definition of the Positive Button function that is displayed in the game launcher.
    游戏加载界面中,轴的正向按键的详细描述。
    Descriptive Negative Name
    反向描述
    A detailed definition of the Negative Button function that is displayed in the game launcher.
    游戏加载界面中,轴的反向按键的详细描述。
    Negative Button 反向按钮
    The button that will send a negative value to the axis.
    该按钮会给轴发送一个负值 。
    Positive Button 正向按钮
    The button that will send a positive value to the axis.
    该按钮会给轴发送一个正值 。
    Alt Negative Button 备选反向按钮
    The secondary button that will send a negative value to the axis.
    给轴发送负值的另一个按钮。
    Alt Positive Button 备选正向按钮
    The secondary button that will send a positive value to the axis.
    给轴发送正值的另一个按钮。
    Gravity 重力
    How fast will the input recenter. Only used when the Type is key / mouse button.
    输入复位的速度,仅用于类型为 键/鼠标 的按键。
    Dead 阈
    Any positive or negative values that are less than this number will register as zero. Useful for joysticks.
    任何小于该值的输入值(不论正负值)都会被视为0,用于摇杆。
    Sensitivity
    灵敏度
    For keyboard input, a larger value will result in faster response time. A lower value will be more smooth. For Mouse delta the value will scale the actual mouse delta.
    对于键盘输入,该值越大则响应时间越快,该值越小则越平滑。对于鼠标输入,设置该值会对鼠标的实际移动距离按比例缩放。
    Snap 对齐
    If enabled, the axis value will be immediately reset to zero after it receives opposite inputs. Only used when the Type is key / mouse button.
    如果启用该设置,当轴收到反向的输入信号时,轴的数值会立即置为0,仅用于键/鼠标 输入。
    Invert 反转
    If enabled, the positive buttons will send negative values to the axis, and vice versa.
    启用该参数可以让正向按钮发送负值,反向按钮发送正值。
    Type 类型
    Use Key / Mouse Button for any kind of buttons, Mouse Movement for mouse delta and scrollwheels, Joystick Axis for analog joystick axes and Window Movement for when the user shakes the window.
    所有的按钮输入都应设置为 键/鼠标 (Key / Mouse) 类型,对于鼠标移动和滚轮应设为 鼠标移动(Mouse Movement)。摇杆设为摇杆轴 (Joystick Axis),用户移动窗口设为窗口移动 (Window Movement)。
    Axis 轴
    Axis of input from the device (joystick, mouse, gamepad, etc.)
    设备的输入轴(摇杆,鼠标,手柄等)
    Joy Num 摇杆编号
    Which joystick should be used. By default this is set to retrieve the input from all joysticks. This is only used for input axes and not buttons.
    设置使用哪个摇杆。默认是接收所有摇杆的输入。仅用于输入轴和非按键。  【Details 细节】All the axes that you set up in the Input Manager serve two purposes:在输入管理器中设置的轴有2个目的:    They allow you to reference your inputs by axis name in scripting
    让你可以在脚本中通过轴的名称来使用输入。
    They allow the players of your game to customize the controls to their liking
    让游戏玩家可以自定义游戏的输入。 All defined axes will be presented to the player in the game launcher, where they will see its name, detailed description, and default buttons. From here, they will have the option to change any of the buttons defined in the axes. Therefore, it is best to write your scripts making use of axes instead of individual buttons, as the player may want to customize the buttons for your game.在游戏加载界面中,玩家可以看到所有定义的轴,包括名称,详细说明,默认按键,他们可以通过选项改变轴的按键。因此,在脚本中你最好也使用轴而不是单独的按键,这样玩家就可以在你的游戏中自定义按键。
The game launcher's Input window is displayed when your game is&nbsp***nSee also: Input.游戏的加载界面会显示输入窗口。参见 输入(Input)。
【Hints 提示】    Axes are not the best place to define "hidden" or secret functions, as they will be displayed very clearly to the player in the game launcher.
    轴不适合定义一些隐藏或秘密功能,因为它会在加载界面中清楚地显示给玩家。 iOSThis section is not supported on iOS devices.该部分内容不适用于iOS设备。For more info on how to work with input on iOS devices, please refer to the iOS Input page.若要获取更多关于iOS设备如何输入的内容,请参见iOS Input页面。
AndroidThis section is not supported on Android devices.该部分内容不适用于Android设备。For more info on how to work with input on Android devices, please refer to the Android Input page.若要获取更多关于Android设备如何输入的内容,请参见 安卓输入( Android Input)页面。【来源:互联网】
更多精彩教程,尽在web3D纳金网http://www.narkii.com/college/
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2024-11-13 11:18 , Processed in 0.095770 second(s), 33 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部