Material Effect on UI

Hey guys,
I have a simple question: I have a UI material which I lay over the UI in UMG, but I reach the limits of my knowledge here. Is it possible somehow to get the underlying UI as a texture to work with it in a material, similar as PostProcessInput0 or SceneTexture works in Surface materials? To be specific: I want a glitch effect on the main menu (like this), but I think I cannot do it like this way, but I don’t want to prerender everything as movies and then just play them in the main menu…
Any ideas on this?
Thank you!

Im actually interested in this as well but I haven’t been able to figure it out.
Feel like we’d need to find out how to make the posteffect only effect the UI render pass.

Yup, but I think Post process effects can’t affect the UI since the UI is not rendered in the main pass…

As I already answered you on twitter, I solved this problem with a easy setup:

  • I have a retainer box in UMG, which contains the children UI elements
  • This retainer box has a effect material slot, which can hold a material which is using the “User Interface” domain
  • The retainer box captures the contents and puts them inside a texture parameter, whose name you can change in the properties of the retainer box
  • Whatever the material outputs is finally drawn on the widget
  • In the effect material, I just supply UV coordinates to the texture parameter to make it look “pixelated”, and I offset the RGB channels so it gets this fringe look
    If you have questions, feel free to ask :slight_smile:

@iUtimate, I have done with steps you mentioned above to the postprocess material(custom stencil) in UI. But my rest of wondow is black after selecting PP material under effect material og retainer box. I want to see stencil effect on my UI texture domain

If you want to add post-process effects for a widget’s covered region, you can try this:

PostProcess Widget - Youtube