Version: 2017.3
public static float deltaTime ;

Description

Время в секундах, которое потребовалось для отрисовки последнего кадра (Read Only).

Используйте эту функцию, чтобы сделать свою игру независимой от частоты кадров.

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.

Note that you should not rely on Time.deltaTime from inside OnGUI since OnGUI can be called multiple times per frame and deltaTime would hold the same value each call, until next frame where it would be updated again.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Update() { float translation = Time.deltaTime * 10; transform.Translate(0, 0, translation); } }