Files
XCSDD/docs/api/resources/resourcemanager/getloader.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
2026-03-19 12:44:08 +08:00

541 B

ResourceManager::GetLoader

IResourceLoader* GetLoader(ResourceType type) const

获取指定类型的资源加载器。

参数:

  • type - 资源类型

返回: 对应的加载器指针,未找到则返回 nullptr

复杂度: O(1)

示例:

IResourceLoader* texLoader = ResourceManager::Get().GetLoader(ResourceType::Texture);
if (texLoader) {
    auto extensions = texLoader->GetSupportedExtensions();
}

相关文档