773 B
773 B
MaterialLoader::GetSupportedExtensions
方法签名
Containers::Array<Containers::String> GetSupportedExtensions() const override;
详细描述
返回该加载器支持的文件扩展名列表。MaterialLoader 支持三种材质文件格式:
.mat- 材质文件.material- 材质文件(完整格式).json- JSON 格式的材质描述文件
参数
无
返回值
Containers::Array<Containers::String> - 支持的扩展名数组
示例
MaterialLoader loader;
auto extensions = loader.GetSupportedExtensions();
for (const auto& ext : extensions) {
printf("Supported extension: %s\n", ext.CStr());
}
// Output:
// Supported extension: mat
// Supported extension: material
// Supported extension: json