Unity --- 如何简单的判断图片是否含有 alpha channel
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 }
 
                    
                
 
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号