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

510 B

ResourcePath::GetRelativePath

Containers::String GetRelativePath() const

获取相对路径。

详细描述:

返回存储的相对路径字符串。当前实现直接返回完整路径。

返回: Containers::String,相对路径

复杂度: O(1)

示例:

ResourcePath path("textures/player.png");
Containers::String relPath = path.GetRelativePath();  // "textures/player.png"

相关文档