Is it possible to get the exact time that a touch event happened? I am using Unity3 iPhone version.
thanks
Is it possible to get the exact time that a touch event happened? I am using Unity3 iPhone version.
thanks
No.
Why would you require it?
Part of my game requires tapping in time with the audio that is playing.
I have been playing around with various ways to try and detect if touches are in time with the music with some success. I have an issue in that I can only get the audio.timeSamples at the time Update() runs, thus it is usually later when the user actually touched.
I would like to get the exact time of the touch so that in Update I can “adjust” the value returned by audio.timeSamples to get a value closer to the actual sample the touch occurred on.
I notice that in the apple documentation for UITouch, they have a timestamp property - “The time when the touch occurred or when it was last mutated”. I thought this might be what I am after and was wondering if this was exposed anywhere in the unity api - which it doesn’t appear to be.