Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

GetTouch rawPosition always returning 0,0,0

Discussion in 'Input System' started by Bucee, May 20, 2022.

  1. Bucee

    Bucee

    Joined:
    Apr 20, 2016
    Posts:
    14
    I'm using Unity 2020.3.24f1 and any time I use Input.GetTouch(0).rawPosition it returns 0,0,0. Input.GetTouch(0).position works as it says it does and gives me the screen coordinates wherever the touch currently is, so as a workaround I just save the GetTouch(0).position during TouchPhase.Begin and use that variable instead of rawPosition, but if anyone knows what's going on here any knowledge would be appreciated.
     
    spider853 likes this.
  2. spider853

    spider853

    Joined:
    Feb 16, 2018
    Posts:
    42
    Same in 2021.3.16