DoesSourceTextureHaveAlpha()
Allows you to check whether the texture source image has an alpha channel.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public bool DoesSourceTextureHaveAlpha()
Returns
Type | Description |
|---|---|
| bool |
Remarks
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.