docs(scripting): add baseline api reference and guide

This commit is contained in:
2026-03-28 15:10:54 +08:00
parent 14c7fd69ec
commit 359fe2adb3
104 changed files with 3377 additions and 27 deletions

View File

@@ -0,0 +1,24 @@
# ScriptEngine::OnScriptComponentEnabled
**命名空间**: `XCEngine::Scripting`
**类型**: `method`
**头文件**: `XCEngine/Scripting/ScriptEngine.h`
## 签名
```cpp
void OnScriptComponentEnabled(ScriptComponent* component);
```
## 当前实现行为
- 只有运行时已启动且 `component` 非空时才处理。
- 会先把组件纳入跟踪表。
- 如果当前满足 `ShouldScriptRun()`,则立刻尝试 `EnsureScriptReady(..., true)`,从而补齐实例创建、`Awake``OnEnable`
## 相关文档
- [OnScriptComponentDisabled](OnScriptComponentDisabled.md)
- [ScriptComponent::OnEnable](../ScriptComponent/OnEnable.md)