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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Get Horizontal/Vertical axis from 2D Vector from Unity's new Input System

Discussion in 'Input System' started by Qrakupi, Sep 14, 2020.

  1. Qrakupi

    Qrakupi

    Joined:
    Aug 13, 2020
    Posts:
    4
    Could you please tell me how to get the Horizontal/Vertical axis from Unity's new Input System.
    I want to migrate the Standart Asset's third person controller with the new Input System. In order to do that I have 2D Vector for the Input, but don't know how to get the Horizontal and Vertical Axis from the context in the C# script. Can you please help, and maybe in the future make the Standart Asset compatible with the new Input System.
     
  2. PaulKhill

    PaulKhill

    Joined:
    Jul 30, 2020
    Posts:
    15
    Hey! You may want to give a look here, I had similar issues. Also : dig into the demo project, it has some examples of that.
     
    Qrakupi likes this.
  3. Qrakupi

    Qrakupi

    Joined:
    Aug 13, 2020
    Posts:
    4
    Im a little late, but thank you for the answer kind stranger.