How can I alpha mask/clip all children of a UMG widget?
I have a bunch of widgets (text, images etc) inside a canvas. I'm trying to mask/clip them using a texture, so they don't display as I move them around. It's something like a minimap with a weird shape for the edges, hence the alphamask.
I know I can set up materials on individual widgets, but is there a way to set a material on a canvas that will clip/affect all children?
asked Apr 15 '16 at 12:09 PM in Using UE4
i don't think there is anything built in to UMG to handle non rectangular clipping. you will probably have to render the minimap to a texture, using a SceneCapture2DComponent, and use a mask texture in the material when you draw it to the screen.
this probably won't work on mobile though, so i hope they add Canvas Clip Shapes at some point to UMG.
answered Apr 15 '16 at 07:25 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here