docs(scripting): add baseline api reference and guide
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# MonoScriptRuntime::TryGetManagedFieldValue
|
||||
|
||||
**命名空间**: `XCEngine::Scripting`
|
||||
|
||||
**类型**: `method`
|
||||
|
||||
**头文件**: `XCEngine/Scripting/Mono/MonoScriptRuntime.h`
|
||||
|
||||
## 签名
|
||||
|
||||
```cpp
|
||||
bool TryGetManagedFieldValue(
|
||||
const ScriptRuntimeContext& context,
|
||||
const std::string& fieldName,
|
||||
ScriptFieldValue& outValue) const override;
|
||||
```
|
||||
|
||||
## 当前实现行为
|
||||
|
||||
和写路径类似:
|
||||
|
||||
- 先找实例缓存。
|
||||
- 再找字段元数据。
|
||||
- 成功后直接从托管对象字段读出当前值。
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [TrySetManagedFieldValue](TrySetManagedFieldValue.md)
|
||||
Reference in New Issue
Block a user