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!
Namespace: BepInEx
Assembly: BepInEx.Unity.Mono.dll
Syntax
public class UnityInput
Properties
Best currently supported input system.
Declaration
public static IInputSystem Current { get; }
Property Value
Type | Description |
---|---|
IInputSystem |
True if the Input class is not disabled.
Declaration
public bool LegacyInputSystemAvailable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |