Class InputValue
Wraps around values provided by input actions.
Inheritance
System.Object
InputValue
Namespace: UnityEngine.InputSystem.Plugins.PlayerInput
Syntax
public class InputValueRemarks
This is a wrapper around InputAction.CallbackContext chiefly for use
with GameObject messages (i.e. 
Properties
isPressed
Declaration
public bool isPressed { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Methods
Get()
Read the value as an object.
Declaration
public object Get()Returns
| Type | Description | 
|---|---|
| System.Object | The current value in the form of a boxed object. | 
Remarks
This method allocates GC memory and will thus created garbage. If used during gameplay, it will lead to GC spikes.
Get<TValue>()
Declaration
public TValue Get<TValue>()
    where TValue : structReturns
| Type | Description | 
|---|---|
| TValue | 
Type Parameters
| Name | Description | 
|---|---|
| TValue |