Skip to content

API > Texture2D > linearGrayTexture


Texture2D.linearGrayTexture⚓︎

Read-Only

Read-only Property This property is Read-Only

Name Type
linearGrayTexture Texture2D

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.