docs(scripting): add baseline api reference and guide
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# ScriptComponent::GetFieldStorage
|
||||
|
||||
**命名空间**: `XCEngine::Scripting`
|
||||
|
||||
**类型**: `method`
|
||||
|
||||
**头文件**: `XCEngine/Scripting/ScriptComponent.h`
|
||||
|
||||
## 签名
|
||||
|
||||
```cpp
|
||||
ScriptFieldStorage& GetFieldStorage();
|
||||
const ScriptFieldStorage& GetFieldStorage() const;
|
||||
```
|
||||
|
||||
## 作用
|
||||
|
||||
访问当前脚本组件的持久化字段缓存。
|
||||
|
||||
## 当前语义
|
||||
|
||||
- 返回内部成员对象的引用,不转移所有权。
|
||||
- 这份存储既用于场景序列化,也用于脚本运行时字段回写。
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [ScriptFieldStorage](../ScriptFieldStorage/ScriptFieldStorage.md)
|
||||
- [Serialize](Serialize.md)
|
||||
Reference in New Issue
Block a user