603 B
603 B
ScriptComponent::GetFieldStorage
命名空间: XCEngine::Scripting
类型: method
头文件: XCEngine/Scripting/ScriptComponent.h
签名
ScriptFieldStorage& GetFieldStorage();
const ScriptFieldStorage& GetFieldStorage() const;
作用
访问当前脚本组件的持久化字段缓存。
当前语义
- 返回内部成员对象的引用,不转移所有权。
- 这份存储既用于场景序列化,也用于脚本运行时字段回写。