docs: update resources API docs
This commit is contained in:
26
docs/api/resources/resourcepath/getrelativepath.md
Normal file
26
docs/api/resources/resourcepath/getrelativepath.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# 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) - 返回类总览
|
||||
Reference in New Issue
Block a user