Version: 2022.3

Sprite.associatedAlphaSplitTexture

切换到手册
public Texture2D associatedAlphaSplitTexture ;

描述

Returns the Texture that contains the alpha channel from the source Texture. Unity generates this Texture under the hood for Sprites that have alpha in the source, and need to be compressed using techniques like ETC1.

Returns NULL if there is no associated alpha Texture for the source Sprite. This is the case if the Sprite has not been setup to use ETC1 compression.