Pierre Angelo

Generation

generate functionWed, 05 Apr 2023

¿Cómo mostrar por pantalla el tiempo transcurrido en unity?

float startTime; float timeElapsed; void someFunction() { startTime = Time.time; /* ...your code here... */ timeElapsed = Time.time - startTime; Debug.Log("Time elapsed: " + timeElapsed); }

Questions about programming?Chat with your personal AI assistant