Class InvertProcessor
An input processor that inverts its input value.
Inherited Members
Namespace: UnityEngine.InputSystem.Processors
Assembly: Unity.InputSystem.dll
Syntax
public class InvertProcessor : InputProcessor<float>
Remarks
This process is registered (see RegisterProcessor<T>(string) as "invert" by default.
// Bind to the gamepad's left trigger such that it returns inverted values.
new InputAction(binding: "<Gamepad>/leftTrigger", processors="invert");
Methods
Process(float, InputControl)
Return the inverted value of value.
Declaration
public override float Process(float value, InputControl control)
Parameters
| Type | Name | Description |
|---|---|---|
| float | value | Input value. |
| InputControl | control | Ignored. |
Returns
| Type | Description |
|---|---|
| float | Invert value. |
Overrides
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |