Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Touch Began state sometimes skipped

Discussion in 'Project Tiny' started by reallyhexln, May 30, 2019.

  1. reallyhexln

    reallyhexln

    Joined:
    Jun 18, 2018
    Posts:
    69
    Guys, do you experience some problems with handling touch events?
    I trying to emulate JustDown event for touches. I checking TouchState.Began to achieve that. Unfortunately, there are some cases (very short touch) when the Tiny returns TouchState.Ended without the matching TouchState.Began.
    I'm not sure, it's a problem with engine itself, it maybe also the problem with my code (for example, I use HDPI fix from this thread:
    https://forum.unity.com/threads/bug-renderer-fails-to-take-into-account-screen-dpi.601087/ - I believe it may be a problem).

    I use Android Chrome browser to check touch events.
     
    Last edited: May 30, 2019
  2. WillJey

    WillJey

    Joined:
    Feb 12, 2019
    Posts:
    6
    I experience the problem too, on iOS.
    SomeTimes It Missed Touch Began Phase. Other words, It Skips Touch.Began Phase to Touch.Moved Phase.