Skip to main content

Texture2D.grayTexture

"Read-Only"

This property is Read-Only

NameType
grayTextureTexture2D

Description

Gets a small Texture with all gray pixels.

Extra Detail

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 sRGB color space.