0 Test Comp Awake 0 Test Comp2 Awake 1 Test Comp Start 1 Test Comp2 Start 1 Test Comp Update 1 Test Comp2 Update 1 Test Comp LateUpdate 1 Test Comp2 LateUpdate
可以看到,两组件完全同步。
在Start中添加:
1 2 3 4 5 6 7 8
0 Test Comp Awake 1 Test Comp Start 1 Test Comp2 Awake 1 Test Comp2 Start 1 Test Comp Update 1 Test Comp2 Update 1 Test Comp LateUpdate 1 Test Comp2 LateUpdate
0 Test Comp Awake 1 Test Comp Start 1 Test Comp Update 1 Test Comp2 Awake 1 Test Comp2 Start 1 Test Comp LateUpdate 1 Test Comp2 LateUpdate 2 Test Comp2 Update
发现Comp2生命周期中的Update被推迟到了下一帧!但是其LateUpdate依然同步。
在LateUpdate中添加:
1 2 3 4 5 6 7 8
0 Test Comp Awake 1 Test Comp Start 1 Test Comp Update 1 Test Comp LateUpdate 1 Test Comp2 Awake 1 Test Comp2 Start 2 Test Comp2 Update 2 Test Comp2 LateUpdate
0 Test Comp Awake 1 Test Comp Start 1 Test Comp FixedUpdate 1 Test Comp2 Awake 1 Test Comp2 Start 1 Test Comp Update 1 Test Comp2 Update 1 Test Comp LateUpdate 1 Test Comp2 LateUpdate 2 Test Comp2 FixedUpdate