Hey, I am trying to get my vertical box widget size.
I have tried GetDesiredSize function but it is not the real size, it represents the size considered its children, what I want is the “borders” size which I setted in the widget blueprint:
not sur it’s what you are looking for, but there is nothing to get that value directly. so here what i do :
if you want the size in local scale ( the one in editor ) simply use
void UStyleEffectWidget::NativeTick(const FGeometry& MyGeometry, float InDeltaTime)
{
Super::NativeTick(MyGeometry, InDeltaTime);
screenSize = MyGeometry.GetLocalSize();
}
if you want the real size rendered : ( parent scale and viewport )