docs: update resources API docs
This commit is contained in:
27
docs/api/resources/resourcepath/getpath.md
Normal file
27
docs/api/resources/resourcepath/getpath.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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) - 设置路径
|
||||
Reference in New Issue
Block a user