LateUpdate is called every frame, if the Behaviour is enabled.
// Moves the object forward 1 meter a second function LateUpdate () { transform.Translate(0, 0, Time.deltaTime * 1); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void LateUpdate() { transform.Translate(0, 0, Time.deltaTime * 1); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def LateUpdate() as void: transform.Translate(0, 0, (Time.deltaTime * 1))