docs(scripting): add baseline api reference and guide
This commit is contained in:
33
docs/api/XCEngine/Scene/SceneRuntime/LateUpdate.md
Normal file
33
docs/api/XCEngine/Scene/SceneRuntime/LateUpdate.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# SceneRuntime::LateUpdate
|
||||
|
||||
**命名空间**: `XCEngine::Components`
|
||||
|
||||
**类型**: `method`
|
||||
|
||||
**头文件**: `XCEngine/Scene/SceneRuntime.h`
|
||||
|
||||
## 签名
|
||||
|
||||
```cpp
|
||||
void LateUpdate(float deltaTime);
|
||||
```
|
||||
|
||||
## 作用
|
||||
|
||||
驱动后更新阶段。
|
||||
|
||||
## 当前实现行为
|
||||
|
||||
- 与 `FixedUpdate` / `Update` 一样,只有在运行中且场景活动时才执行。
|
||||
- 当前顺序为:
|
||||
1. `ScriptEngine::Get().OnLateUpdate(deltaTime)`
|
||||
2. `m_scene->LateUpdate(deltaTime)`
|
||||
|
||||
## 设计含义
|
||||
|
||||
这维持了当前运行时一贯的脚本优先策略。对商业引擎文档来说,这一点必须明确,因为很多用户会默认认为 `LateUpdate` 主要用于相机跟随、动画后修正和最终姿态收敛,而顺序差异会直接影响结果。
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [SceneRuntime](SceneRuntime.md)
|
||||
- [SceneRuntime::Update](Update.md)
|
||||
Reference in New Issue
Block a user