Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UWidgetLayoutLibrary
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float GetViewportScale
(
const UObject* WorldContextObject |
Gets the current DPI Scale being applied to the viewport and all the Widgets. | Blueprint/WidgetLayoutLibrary.h |
|
static float GetViewportScale
(
const UGameViewportClient* ViewportClient |
Gets the current DPI Scale being applied to the viewport and all the Widgets. | Blueprint/WidgetLayoutLibrary.h |
GetViewportScale(const UObject *)
Description
Gets the current DPI Scale being applied to the viewport and all the Widgets.
| Name | GetViewportScale |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/WidgetLayoutLibrary.h |
| Include Path | #include "Blueprint/WidgetLayoutLibrary.h" |
| Source | /Engine/Source/Runtime/UMG/Private/WidgetLayoutLibrary.cpp |
UFUNCTION (BlueprintPure, BlueprintCosmetic, Category="Viewport",
Meta=(WorldContext="WorldContextObject"))
static float GetViewportScale
(
const UObject * WorldContextObject
)
GetViewportScale(const UGameViewportClient *)
Description
Gets the current DPI Scale being applied to the viewport and all the Widgets.
| Name | GetViewportScale |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/WidgetLayoutLibrary.h |
| Include Path | #include "Blueprint/WidgetLayoutLibrary.h" |
| Source | /Engine/Source/Runtime/UMG/Private/WidgetLayoutLibrary.cpp |
static float GetViewportScale
(
const UGameViewportClient * ViewportClient
)