Skip to main content

Texture2D.linearGrayTexture

"Read-Only"

This property is Read-Only

NameType
linearGrayTextureTexture2D

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