Files
XCSDD/docs/api/resources/iloader/getsupportedextensions.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

26 lines
605 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# IResourceLoader::GetSupportedExtensions
```cpp
Containers::Array<Containers::String> GetSupportedExtensions() const
```
获取此加载器支持的文件扩展名列表。用于 `CanLoad` 判断和编辑器中资源类型识别。
**参数:**
**返回:** 支持的扩展名数组(如 `{".png", ".jpg", ".bmp"}`
**复杂度:** O(1)
**示例:**
```cpp
Containers::Array<Containers::String> TextureLoader::GetSupportedExtensions() const {
return {".png", ".jpg", ".jpeg", ".bmp", ".tga", ".dds"};
}
```
## 相关文档
- [IResourceLoader 总览](iloader.md) - 返回类总览