This is probably something obvious, but I’v searched for an hour and didn’t found it.
How to get (blueprint/c++, does not matter) size & position of UBorder (UMG border widget) AFTER all the layouting & resolution scaling.
(Alternativelly is there any function that can test if point (Vector2D in screen space) is inside (bounds) of given widget (UBorder) ?)
It’s been a while and I’m sure you’ve already solved this problem, but I’ll leave the method up for anyone who ends up here.
// UE 4.27
#include "Components/CanvasPanelSlot.h"
#include "Blueprint/WidgetBlueprintLibrary.h"
// "this" is userwidget class or UBorder, UImage, UCanvasPanel and so on.
UCanvasPanelSlot* slot = UWidgetLayoutLibrary::SlotAsCanvasSlot(this);
slot->GetPosition();
slot->GetSize();