Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 597 Bytes

File metadata and controls

29 lines (24 loc) · 597 Bytes
title Time
category Events
layout 2017/sheet
tags
Featured
prism_languages
csharp

Runtime

Time.timeScale = 0;

Pause time

float timePassedSinceLastFrame = Time.deltaTime;

The time in seconds it took to complete the last frame. Use with Update() and LateUpdate()

float timeSinceStartOfGame = Time.time;

The time in seconds since the start of the game

float physicsInterval =  Time.fixedDeltaTime;

The interval in seconds at which physics and fixed frame rate updates are performed. Use with FixedUpdate()