Hey, so I have a canvas panel for a widget, and a button that toggles between a full screen and tiny in corner state. I have the Canvas Panel set to a variable, but there doesn’t seem to be any actions for resizing it. I can get the render transform, but there’s, like, 0 actions that use that. Anyone have any suggestions on how I do this?
You make a custom widget by extending UUserWidget in c++, guide here:
https://wiki.unrealengine.com/UMG,_How_to_extend_a_UUserWidget::_for_UMG_in_C%2B%2B
The UUserWidget class has a method to set size so you could do something like this:
UFUNCTION()
void UYourWidget::OnClick(){
float ScreenWidth = ...;
float ScreenHeight = ...;
this ->SetDesiredSizeInViewport(FVector2D(ScreenWidth, ScreenHeight));
}