Slot as canvas slot invalid ( widget doesn't have any slot)


I’m trying to set the position of a widget. For this I use the “slot as canvas slot” node which would normally allow me to change it’s position. However for some very strange reason the widget I’m creating doesn’t seem to have any slot at all, no canvas slot, no nothing. It’s like it doesn’t exist, yet when created and added to my viewport I can see it just fine. I’m mindblown as to what is going on here. Can someone please help?

the following print string doesn’t print anything

the widget itself

SlotAsCanvasSlot will try to get the parent slot of one widget and cast it to CanvasSlot, you create your widget and add it to viewport, so it will return null for you.
If you want to change the position of the widget in viewport, just use SetPositionInViewport