http://docs.unity3d.com/Documentation/Manual/ExecutionOrder.html
例如
- FixedUpdate: FixedUpdate() is often called more frequently than Update(). It can be called multiple times per frame, if the frame rate is low and it may not be called between frames at all if the frame rate is high. All physics calculations and updates occur immediately after FixedUpdate(). When applying movement calculations insideFixedUpdate(), you do not need to multiply your values by Time.deltaTime. This is because FixedUpdate() is called on a reliable timer, independent of the frame rate.
- Update: Update() is called once per frame. It is the main workhorse function for frame updates.
- LateUpdate: LateUpdate() is called once per frame, after Update() has finished. Any calculations that are performed in Update() will have completed when LateUpdate()begins. A common use for LateUpdate() would be a following third-person camera. If you make your character move and turn inside Update(), you can perform all camera movement and rotation calculations in LateUpdate(). This will ensure that the character has moved completely before the camera tracks its position.
FixedUpdate() 是按等长事件间隔来调用的,不一定和帧等价,可能一帧多次,也可能几帧一次。 一般用在物理引擎上(因为物理引擎对回调间隔精度要求比较严)。
Update: Update() 每帧一次,修改状态在这个弄。
LateUpdate: LateUpdate() 在LateUpdate里面,也就是说,修改完状态了,一般用来做视角跟踪的。