Skip to content

API > Texture2D > grayTexture


Texture2D.grayTexture⚓︎

Read-Only

Read-only Property This property is Read-Only

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