Time.timeSinceLevelLoad in Unity
Notes:
Time.timeSinceLevelLoad in Unity:
- returns the time passed in seconds; since the level has been loaded
Note: is affected by Time.timeScale;
i.e. if game is paused then Time.timeSinceLevelLoad will also be paused and scales or descales according to Time.timeScale value
Example Code:
void Start()
{
Debug.Log((int)Time.timeSinceLevelLoad);
}
void Update ()
{
Debug.Log((int)Time.timeSinceLevelLoad);
}