LateUpdate

When is the LateUpdate function useful?

Whenever you need to do stuffs after Update.

That’s helpful
It’s useful, if you have something to do with positions. Positions will most likely be set in the update method, and this way in late update you can do calculations with them, without having some object “lagging behind” with one frame. As the docs states “For example a follow camera should always be implemented in LateUpdate because it tracks objects that might have moved inside Update”

Heres a nifty doc about the execution order.

Knowing in what sequence your built-in methods will be called is critical. LateUpdate()'s call position is just as important as Awake()'s call position.

1 Like