InputSystemAvailability
public static class InputSystemAvailabilityInherits from System.Object
#Methods
#GetAxis(string?)
public static float GetAxis(string? axisName)Parameters
axisNamestring
Returns Single
#GetButtonDown(string?)
public static bool GetButtonDown(string? buttonName)Parameters
buttonNamestring
Returns Boolean
#GetKeyDown(KeyCode)
Gets a value indicating whether the key indicated by a
KeyCode was pressed this frame.public static bool GetKeyDown(KeyCode key)Parameters
keyKeyCodeTheKeyCodeto check for the state of.
Returns Boolean: Whether the key was pressed this frame.
If the Legacy Input Manager is enabled, this method wraps
Input.GetKeyDown. Otherwise, it attempts to find the UnityEngine.InputSystem.Key equivalent of key, and then checks with UnityEngine.InputSystem.Keyboard.current to find the key,
and queries its UnityEngine.InputSystem.Controls.ButtonControl.wasPressedThisFrame
property.Generated from Yarn Spinner for Unity 3.3.