TextureImporter.DoesSourceTextureHaveAlpha

Switch to Manual

Declaration

public bool DoesSourceTextureHaveAlpha();

Description

Allows you to check whether the texture source image has an alpha channel.

This method throws an exception if the texture has not finished importing. For example, it would throw an exception if you called this method in an AssetPostprocessor.OnPreprocessAsset callback.


Did you find this page useful? Please give it a rating: