Hello, inside a class method, I need to set the amount of time a certain key is pressed:
void SomeFunc() {
// ...
timePressed += Time.deltaTime;
// ...
}
I’m now wondering how accurate this is: my understanding is that Time.deltaTime is the amount of time it took to execute the last frame.
Update() is guaranteed to execute once per frame, but how about other functions like SomeFunc() ? What happens what frames are dropped for instance ?
Thanks