Files
XCEngine/docs/api/resources/resourcepath/getpath.md

28 lines
549 B
Markdown

# ResourcePath::GetPath
```cpp
const Containers::String& GetPath() const
```
获取原始路径字符串。
**详细描述:**
返回内部存储的路径字符串的常量引用。
**返回:** `const Containers::String&`,路径字符串的常量引用
**复杂度:** O(1)
**示例:**
```cpp
ResourcePath path("textures/player.png");
const Containers::String& rawPath = path.GetPath(); // "textures/player.png"
```
## 相关文档
- [ResourcePath 总览](resourcepath.md) - 返回类总览
- [SetPath](setpath.md) - 设置路径