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

522 B
Raw Blame History

ResourcePath::SetPath

void SetPath(const Containers::String& path)

设置路径字符串。

详细描述:

更新内部存储的路径字符串。

参数:

  • path - 新的路径字符串

复杂度: O(n)n 为路径长度

示例:

ResourcePath path;
path.SetPath("textures/player.png");
Containers::String name = path.GetFileName();  // "player.png"

相关文档