Search Unity

[solved]new input system and unity mathematics

Discussion in 'Input System' started by Aokkii, Feb 17, 2020.

  1. Aokkii

    Aokkii

    Joined:
    Nov 3, 2013
    Posts:
    118
    I haven't tried unity mathematics with the new input system so i have this question..

    can i use
    Code (CSharp):
    1. move = value.Get<float2>();
    instead of
    Code (CSharp):
    1. move = value.Get<Vector2>();
    when using the unity mathematics package?
     
  2. Rene-Damm

    Rene-Damm

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    The type there has to correspond to the value type of the underlying bindings/controls so no, unfortunately float2 won't work here.