docs: expand gameobject helper docs

This commit is contained in:
2026-04-03 16:11:48 +08:00
parent ee44e14960
commit 2c2e1fab1c
34 changed files with 597 additions and 603 deletions

View File

@@ -1,31 +1,25 @@
# GameObject::LateUpdate
公开方法,详见头文件声明
向当前对象及其子树分发 `LateUpdate(deltaTime)`
```cpp
void LateUpdate(float deltaTime);
```
该方法声明于 `XCEngine/Components/GameObject.h`,当前页面用于固定 `GameObject` 类目录下的方法级 canonical 路径。
## 行为说明
**参数:**
- `deltaTime` - 参数语义详见头文件声明。
当前实现会:
**返回:** `void` - 无返回值。
- 若对象不处于 `active in hierarchy`,直接返回
- 对所有已启用普通组件调用 `LateUpdate(deltaTime)`
- 递归对子对象调用 `LateUpdate(deltaTime)`
**示例:**
## 参数
```cpp
#include <XCEngine/Components/GameObject.h>
void Example() {
XCEngine::Components::GameObject object;
// 根据上下文补齐参数后调用 GameObject::LateUpdate(...)。
(void)object;
}
```
- `deltaTime` - 当前变步长帧时间。
## 相关文档
- [返回类总览](GameObject.md)
- [返回模块目录](../Components.md)
- [Update](Update.md)
- [FixedUpdate](FixedUpdate.md)
- [Scene::LateUpdate](../../Scene/Scene/LateUpdate.md)