Change UUserWidget Height and Width
I am creating a 3D pop up UMG system and am running into a bit of a problem trying to set up a sorta custom resize of the layout in C++. I have gotten everything working like spawning the 3D UMG widget and component and have all my widgets inside a CanvasPanel and ScaleBox and am using the SetSize() function to resize my images and borders inside that Panel. My problem is that I cant seem to rezise the main UserWidget's size. In the actual engine changing the Preview Size to Custom and setting it to something like 500,500 is all fine and dandy but how do I change this to use to use my own size in C++ , at runtime? I just cant seem to find the FVector2D anywhere to change it. I know I am missing something obvious :(
My code I have been using so far.
Hi, I think you want to set the widget component size like you did for the preview size (example 500,500).
You can use
Your userwidget does not really have a size so you need to update the size of UWidgetComponent
answered Jan 26 '16 at 11:13 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here