Input Manager (インプット設定) では、プロジェクトの入力軸すべてとゲームの動作を決定します。
インプット設定は、Edit->Project Settings->Input の順に選択すると表示できます。
プロパティー | 機能 |
---|---|
Axes | 現在のプロジェクトに定義されたすべての入力軸を含みます。 Size は、このプロジェクトのさまざまな入力軸の数で、 Element 0, 1, … は、変更する特定の軸を示します。 |
Name | ゲームランチャーやスクリプトを通じて軸を参照する文字列。 |
Descriptive Name | ゲームランチャーに表示される Positive Button の内容を表す名前。 |
Descriptive Negative Name | ゲームランチャーに表示される Negative Button の内容を表す名前。 |
Negative Button | 軸に負の値を送るボタン。 |
Positive Button | 軸に正の値を送るボタン。 |
Alt Negative Button | 軸に負の値を送るための、代わりのボタン。 |
Alt Positive Button | 軸に正の値を送るための、代わりのボタン。 |
Gravity | 入力 (押したキー、押している間 1) が 0 に戻る速さ。Type が Key or Mouse Button のときのみに使用できます。 |
Dead | 指定した数値未満の正や負の値は 0 として認識されます。ジョイスティックに便利です。 |
Sensitivity | キーボード入力の場合、この値を大きくすると、応答時間が速くなります。値が低いと、より滑らかになります。マウス移動の場合、この値によって実際のマウスの移動差分が拡大縮小されます。 |
Snap | 有効にすると、反対の入力を受け取った直後に、軸の値が 0 にリセットされます。 Type が Key or Mouse Button の場合にのみ使用されます。 |
Invert | 有効にすると、正のボタンと負のボタンが入れ替わります。正のボタンが負の値を軸に与え、負のボタンが正の値を軸に与えます。 |
Type | すべてのボタンには Key or Mouse Button 、マウスの移動やスクロールホイールには Mouse Movement 、アナログジョイスティックには Joystick Axis 、ユーザーがウィンドウをゆさぶる場合には Window Movement をそれぞれ使用します。 |
Axis | デバイスからの入力の軸(ジョイスティック、マウス、ゲームパッドなど)。 |
Joy Num | 使用するジョイスティックの選択。デフォルトでは、すべてのジョイスティックからの入力を受付けます。これは、入力軸のみに使用され、ボタンには使用されません。 |
インプット設定で設定した軸にはすべて、次の2つの目的があります。
定義された軸はすべてゲームランチャーに表示されます。そこでは、その名前、詳細な説明、デフォルトのボタンが表示されます。また、軸が定義されたボタンの割り当てを変更するためのオプションも表示されます。そのため、プレイヤーがボタンをカスタマイズできるように、個々のボタンの代わりに、軸を使用するようなスクリプトを記述するのがいいでしょう。
以下もあわせて参照してください。Input
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.