Version: 2023.1

Texture2D.linearGrayTexture

切换到手册
public static Texture2D linearGrayTexture ;

描述

获取一个全部为灰色像素的小纹理。

Unity sets all pixels of this Texture to gray (0.5,0.5,0.5,0.5). The alpha value is also 0.5 (half transparent), and the color is in linear color space.

另请参阅:grayTexture