核心代码:
//texPath为图片路径
texImporter = TextureImporter.GetAtPath(texPath) as TextureImporter;
if (texImporter.DoesSourceTextureHaveAlpha())
{
return true;
}
核心代码:
//texPath为图片路径
texImporter = TextureImporter.GetAtPath(texPath) as TextureImporter;
if (texImporter.DoesSourceTextureHaveAlpha())
{
return true;
}