Class NormalizeVector2Processor
Normalizes a Vector2
input value.
Inherited Members
Namespace: UnityEngine.InputSystem.Processors
Assembly: Unity.InputSystem.dll
Syntax
public class NormalizeVector2Processor : InputProcessor<Vector2>
Remarks
This processor is registered (see RegisterProcessor<T>(string)) under the name "normalizeVector2".
Methods
Process(Vector2, InputControl)
Normalize value
. Performs the equivalent of value.normalized
.
Declaration
public override Vector2 Process(Vector2 value, InputControl control)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value | Input vector. |
InputControl | control | Ignored. |
Returns
Type | Description |
---|---|
Vector2 | Normalized vector. |
Overrides
See Also
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |