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

Changing input to come in as x,y, instead of x,z

Discussion in '2D' started by istandalonetoo, Jun 2, 2020.

  1. istandalonetoo

    istandalonetoo

    Joined:
    Jun 2, 2020
    Posts:
    3
    I have a standard game where the player moves in the x,y plane. I'm using the new input system. The input from a controller and keyboard using "pass through" and "vector 2" always come in looking like 1,0,1. In other words, it moves the character along the x and z axis'. Is it possible to change the input system to pass the coordinates along the x and y? Otherwise, I need to move the z value to the y field and that's... ugh.

    Sorry if this is easy. I'm brand new to unity.
     
  2. istandalonetoo

    istandalonetoo

    Joined:
    Jun 2, 2020
    Posts:
    3
    I was using some starter code and it moved the y to the z in one function call. I just had to change that back.
     
  3. CaileyMB

    CaileyMB

    Joined:
    Mar 6, 2021
    Posts:
    1
    did you solve this issue? Im also new to unity and im having the exact opposite of your problem XD I need it to change x,z instead of x,y and perhaps I can get some tips from how you solved your issue?