Feature request: UI Shader desaturation

We’ve a few places in our UI where we indicated ‘locked’ features by desaturating images.

I was able to edit the MaskingShader to include a saturation float, but don’t know of a way to modify that float at runtime to desaturate our UI elements.

Any ideas?

Thanks,
Joe

We plan to add support for custom materials to UI components, which would allow you to do this by setting properties on the CanvasRenderer.material. At the moment, the only way to do it would be to replace the Image/RawImage texture–unless the image is grayscale and tinted by the Image color, in which case you can just desaturate the color property.

Is there any timeframe for material support for UGUI?

No time frame yet, but we plan to start working on it soon.

1 Like