Class UnityInput

Abstraction layer over Unity's input systems for use in universal plugins that need to use hotkeys. It can use either Input or Unity.InputSystem, depending on what's available. Input is preferred. WARNING: Use only inside of Unity's main thread!

Inheritance
System.Object UnityInput
Inherited Members
System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace: BepInEx
Assembly: BepInEx.dll
Syntax
public static class UnityInput

Properties

Current

Best currently supported input system.

Declaration
public static IInputSystem Current { get; }
Property Value
Type Description
IInputSystem

LegacyInputSystemAvailable

True if the Input class is not disabled.

Declaration
public static bool LegacyInputSystemAvailable { get; }
Property Value
Type Description
System.Boolean