I added a button in my widget, the image in the button is not a rectangle. but when the mouse moves into the corner in button rectangle , button state changes! I think it should not be this, cause the area is blank(has no pixel in the button corner).
So I checked LocateWindowUnderMouse method in Application. I found this inSUMGDesigner.cpp :
Candidate.Geometry.IsUnderLocation(InAbsoluteCursorLocation) &&
// Candidate actually considers itself hit by this test
( Candidate.Widget->OnHitTest(Candidate.Geometry, InAbsoluteCursorLocation) );
Dose it resonable that search undermouse widgets just using geometry?
Does anyone know this issue?
We don’t yet support alpha mask hit testing in slate.
Will alpha mask hit testing be supported in future?
Yes, or something else that accomplishes the same goal. Not sure when it will be in though, but it is something we plan to do.