Files
XCEngine/docs/api/XCEngine/Scripting/ScriptComponent/GetFullClassName.md

32 lines
565 B
Markdown
Raw Normal View History

# ScriptComponent::GetFullClassName
**命名空间**: `XCEngine::Scripting`
**类型**: `method`
**头文件**: `XCEngine/Scripting/ScriptComponent.h`
## 签名
```cpp
std::string GetFullClassName() const;
```
## 当前实现行为
- 如果 `m_className` 为空,返回空字符串。
- 如果命名空间为空,只返回类名。
- 否则返回 `namespace + "." + class`
## 用途
这个接口主要用于:
- 日志描述。
- 测试断言。
- 错误信息里构造完整脚本类名。
## 相关文档
- [ScriptComponent](ScriptComponent.md)