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. Dismiss Notice

Resolved Get Vector2 from Button?

Discussion in 'Input System' started by Pudgym, May 17, 2023.

  1. Pudgym

    Pudgym

    Joined:
    Nov 9, 2022
    Posts:
    6
    I'm using the input system for a mobile game and wanted to capture the position of the touch at the same time as catching the touch itself.

    When I tried to read the Vector2 value, I got an error because I'm only checking for a touch and can only read a float. I read something about Composites and Modifiers, but I'm pretty confused. Is it possible to get that Vector2 value added to the Input context without using code?
     
  2. Pudgym

    Pudgym

    Joined:
    Nov 9, 2022
    Posts:
    6
    I solved the problem, it turns out I was ignorant and required more reading, experimentation and practice. All is well and I love the new Input System so much.