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

549 B

ResourcePath::GetPath

const Containers::String& GetPath() const

获取原始路径字符串。

详细描述:

返回内部存储的路径字符串的常量引用。

返回: const Containers::String&,路径字符串的常量引用

复杂度: O(1)

示例:

ResourcePath path("textures/player.png");
const Containers::String& rawPath = path.GetPath();  // "textures/player.png"

相关文档