Widget Render Tint / Color And Opacity


Version: 4.27.0 / 5 Early Access
C++ and Blueprint


For my user widget animation implementation in C++ it was necessary
to have a function which changes the color and opacity of a widget
which acts like the render transform and render opacity functions.

I found that sometimes when updating a UTextBlock with SetColorAndOpacity()
the color would not update, I tried a few workarounds with
RebuildWidget() and SynchronizeProperties() but they failed.

Since manipulating the render transform did not have this issue
I sort of copied the RenderOpacity functionality of SWidget and
wrote a RenderTint implementation that uses FWidgetStyle::BlendColorAndOpacityTint()
where the RenderOpacity uses FWidgetStyle::BlendOpacity().

You can use the Render Tint to change the color and opacity of any widget with it.

You can use it on Panels and Buttons to also change the color of child widgets.

Widget Render Tint in Blueprint

Download:

WidgetRenderTint4.27.zip
WidgetRenderTint5.zip

Installation:

Copy the files from the .zip archive into your custom engine Source folder and build the engine.