In a widget WBP_UI, I create a Vector2D variable UI_ViewportXYSize to hold my viewport size:
Using the PrintString I know that the UI_ViewportXYSize correctly stores the viewport’s X and Y sizes.
However, when I create and add the WBP_UI widget to the viewport from my HUD, its debug PrintString shows me that the UI_ViewportXYSize is now (0,0) or in fact whatever the default value of UI_ViewportXYSize is set to in WBP_UI.
I’d be grateful if someone could point out what I’m doing wrong.

