MonoBehaviour.LateUpdate() in Unity 5.5
from: Unity 5.x By Example by Alan Thorn
The LateUpdate function is always called after all the FixedUpdate and Update calls, allowing an object to modify its position before it’s rendered to the screen.
from: https://docs.unity3d.com/ScriptReference/MonoBehaviour.LateUpdate.html
- LateUpdate is called every frame, if the Behaviour is enabled.
- LateUpdate is called after all Update functions have been called. This is useful to order script execution.
- For example, a following camera should always be implemented in LateUpdate because it tracks objects that might have moved inside Update .
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void LateUpdate() { transform.Translate(0, Time.deltaTime, 0); } }