Search Unity

Question Time after input touch is zero

Discussion in 'Input System' started by thorntonp72, Mar 2, 2023.

  1. thorntonp72

    thorntonp72

    Joined:
    Sep 6, 2022
    Posts:
    1
    Hi,

    I am wondering if it is possible to determine the amount of time it has been since someone touched the screen.

    I am looking to script something like the following possible around 100ms or something.

    if(Input.touchCount = 0 && timesincelasttouch > x)

    Is this possible?

    Thank you

    Paul