Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

[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:
    117
    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

    Unity Technologies

    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.