Files
XCEngine/docs/api/XCEngine/Components/GameObject/LateUpdate.md

26 lines
526 B
Markdown
Raw Normal View History

2026-03-26 16:45:24 +08:00
# GameObject::LateUpdate
2026-04-03 16:11:48 +08:00
向当前对象及其子树分发 `LateUpdate(deltaTime)`
2026-03-26 16:45:24 +08:00
```cpp
void LateUpdate(float deltaTime);
```
2026-04-03 16:11:48 +08:00
## 行为说明
2026-03-26 16:45:24 +08:00
2026-04-03 16:11:48 +08:00
当前实现会:
2026-03-26 16:45:24 +08:00
2026-04-03 16:11:48 +08:00
- 若对象不处于 `active in hierarchy`,直接返回
- 对所有已启用普通组件调用 `LateUpdate(deltaTime)`
- 递归对子对象调用 `LateUpdate(deltaTime)`
2026-03-26 16:45:24 +08:00
2026-04-03 16:11:48 +08:00
## 参数
2026-03-26 16:45:24 +08:00
2026-04-03 16:11:48 +08:00
- `deltaTime` - 当前变步长帧时间。
2026-03-26 16:45:24 +08:00
## 相关文档
2026-04-03 16:11:48 +08:00
- [Update](Update.md)
- [FixedUpdate](FixedUpdate.md)
- [Scene::LateUpdate](../../Scene/Scene/LateUpdate.md)