Time.deltaTime Manual     Reference     Scripting  
Scripting > Runtime Classes > Time

static var deltaTime : float


The time in seconds it took to complete the last frame (Read Only).

Use this function to make your game frame rate independent.

If you add or subtract to a value every frame chances are you should multiply with Time.deltaTime. When you multiply with Time.deltaTime you essentially express: I want to move this object 10 meters per second instead of 10 meters per frame.

When called from inside MonoBehaviour's FixedUpdate, returns the fixed framerate delta time.

function Update () {
// Move the object 10 meters per second!
var translation = Time.deltaTime * 10;
transform.Translate (0, 0, translation);