Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Blueprint > UUserWidget
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h |
Include | #include "Blueprint/UserWidget.h" |
Source | /Engine/Source/Runtime/UMG/Private/UserWidget.cpp |
void SetPositionInViewport
&40;
FVector2D Position,
bool bRemoveDPIScale
&41;
Remarks
Sets the widgets position in the viewport.
Parameters
Name | Description |
---|---|
Position | The 2D position to set the widget to in the viewport. |
bRemoveDPIScale | If you've already calculated inverse DPI, set this to false. Otherwise inverse DPI is applied to the position so that when the location is scaled by DPI, it ends up in the expected position. |