Pardon our dust! Docs for Yarn Spinner for Unity 3.2 and Yarn Spinner for Godot C# are on docs.yarnspinner.dev (the old docs site). Docs for Yarn Spinner for Unity 3.3 (pre-release, out ASAP), Yarn Spinner for Godot GDScript and Yarn Spinner for Unreal Engine (work in progress) are on /docs/ (the new docs site).

InputSystemAvailability

public static class InputSystemAvailability

Inherits 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

  • keyKeyCode
    The KeyCode to 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.