So I am trying to mask out some parts of my custom HUD (Blueprintable) with the PushMaskRegion() Function. The following command compiles, but doesn’t seem to have any effect…
Canvas->Canvas->PushMaskRegion(10,10, 100, 100);
//draw various things
Canvas->Canvas->PopMaskRegion();
Do you know what might be the problem or if there is any working function for masking inside the HUD?
I tried to set the ClipX and ClipY Variables. But there are two problems with that approach.
First, all this seems to do is to mess up my Mouse-Cursor (see Pic). It doesn’t cut anything else. Be it a DrawTile- or a DrawText-Function.
Second, if setting this variables did actually work, I would need a start- AND an end-point… and not just an end point. The PushMaskRegion()-Function did this perfectly back in UE3.