1 var texImporter = AssetImporter.GetAtPath(assetPath) as TextureImporter;
2 if (texImporter.DoesSourceTextureHaveAlpha())
3 {
4     Debug.Log("textures source image don't have alpha channel ");
5 }
6 else
7 {
8     Debug.Log("textures source image have alpha channel ");
9 }
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄