A 2D planar motion vector computed from an up+down button pair and a left+right
button pair.
Inheritance
System.Object
Vector2Composite
public class Vector2Composite : InputBindingComposite<Vector2>
Fields
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Declaration
Field Value
Type |
Description |
System.Int32 |
|
If true (default), then the resulting vector will be normalized. Otherwise, diagonal
vectors will have a magnitude > 1.
Declaration
Field Value
Type |
Description |
System.Boolean |
|
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Methods
EvaluateMagnitude(ref InputBindingCompositeContext)
Declaration
public override float EvaluateMagnitude(ref InputBindingCompositeContext context)
Parameters
Returns
Type |
Description |
System.Single |
|
Overrides
ReadValue(ref InputBindingCompositeContext)
Declaration
public override Vector2 ReadValue(ref InputBindingCompositeContext context)
Parameters
Returns
Overrides
UnityEngine.InputSystem.InputBindingComposite<Vector2>.ReadValue(UnityEngine.InputSystem.InputBindingCompositeContext)