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

Question Keeping consistent Touch Delta on different screens.

Discussion in 'Input System' started by petey, Jun 17, 2021.

  1. petey

    petey

    Joined:
    May 20, 2009
    Posts:
    1,771
    Hi there,

    I'm using the new input system Enhanced touch to get touch data and I was just wondering, does anyone have any tips on keeping the touch delta position consistent across different screens with different resolutions?
    I've run into problems in the past with touch delta position as different screen resolutions can make the touch delta results vary quite a bit on different devices.

    https://docs.unity3d.com/Packages/c...tyEngine.InputSystem.EnhancedTouch.Touch.html

    Thanks!
    Pete
     
  2. kiranmaya

    kiranmaya

    Joined:
    May 27, 2010
    Posts:
    218
    solved? if so plz share your idea.
     
  3. petey

    petey

    Joined:
    May 20, 2009
    Posts:
    1,771
    G'day!
    I'm sure there's a better way, but I had a system that raycast from the touch point to a quad in the scene so I ended up using the 3d position of that ray hit and making my own delta position. It worked a little better for me because it wasn't affected by the screen resolution.