27 lines
510 B
Markdown
27 lines
510 B
Markdown
# ResourcePath::GetRelativePath
|
|
|
|
```cpp
|
|
Containers::String GetRelativePath() const
|
|
```
|
|
|
|
获取相对路径。
|
|
|
|
**详细描述:**
|
|
|
|
返回存储的相对路径字符串。当前实现直接返回完整路径。
|
|
|
|
**返回:** `Containers::String`,相对路径
|
|
|
|
**复杂度:** O(1)
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
ResourcePath path("textures/player.png");
|
|
Containers::String relPath = path.GetRelativePath(); // "textures/player.png"
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [ResourcePath 总览](resourcepath.md) - 返回类总览
|