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?
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.