The time in seconds it took to complete the last frame (Read Only).
function Update () { // Move the object 10 meters per second! var translation : float = Time.deltaTime * 10; transform.Translate (0, 0, translation); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Update() { float translation = Time.deltaTime * 10; transform.Translate(0, 0, translation); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Update() as void: translation as float = (Time.deltaTime * 10) transform.Translate(0, 0, translation)