USlateBlueprintLibrary::ScreenToViewport

Translates a screen position in pixels into the local space of the viewport widget.

Choose your operating system:

Windows

macOS

Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/SlateBlueprintLibrary.h

Include

#include "Blueprint/SlateBlueprintLibrary.h"

Source

/Engine/Source/Runtime/UMG/Private/SlateBlueprintLibrary.cpp

Syntax

static void ScreenToViewport
(
    UObject * WorldContextObject,
    FVector2D ScreenPosition,
    FVector2D & ViewportPosition
)

Remarks

Translates a screen position in pixels into the local space of the viewport widget.