お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close全ての入力をリセットします。ResetInputAxesを行った後、全ての軸は0になり、全てのボタンは1フレームだけ0に戻ります
プレイヤーの再生成や押しっぱなしにしているキーから入力を受け付けたくない時に使用することが出来ます。
Input.ResetInputAxes();
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { Input.ResetInputAxes(); } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: Input.ResetInputAxes()