private static CountImportersWithHDR ( Object importers, int &count ) : bool | ||
importers | Object | |
count | int | |
Résultat | bool |
private static bool CountImportersWithHDR(Object[] importers, out int count)
{
try
{
count = 0;
foreach (Object obj2 in importers)
{
if ((obj2 as TextureImporter).IsSourceTextureHDR())
{
count++;
}
}
return true;
}
catch
{
count = importers.Length;
return false;
}
}