Exclude Actors from Translucent UI Color

I have some actors in the world. The player’s UI is often on top of the actor. The UI is translucent. The only problem is that I don’t want the translucent color to affect these specific actors of this class. Basically if I have a blue square widget on screen with an opacity on 50% and a sphere in the world underneath it, I want the blue square to “tint” every other actor besides the sphere. I understand C++ so if you have a solution with that, that would be fine. Any ideas anyone?

for example, you want to exclude some color from something, But which color? red color? what is red? it is (1,0,0)? ok, but this is pure red color. in regular scene it can be shaded, or affected by post process color correction, or covered by translucent steam/dust/fog particles, and after that it is not pure red, its something different.

so, the only way to do that, is to render actor on top of widget. but I think its impossible for simple 2d widget.

Hey redbox, thanks for the response
I don’t want to exclude color from something, I want the actors to not be affected visually by the translucent overlay whatsoever, but I want the background behind the actors to be affected. So, yeah a way of doing that would to render the actor over the widget, but as you said is probably impossible. The only thing I could think of is to have a render target capture the area through the widget, show only the specific actor type, have zero lighting, mask out the solid color the capture sees for the capture (because no lighting) and apply the mask as a material somehow to the widget. This seems way too complicated as well as resources costly though. :confused: