UWidgetComponent::GetLocalHitLocation

Converts a world-space hit result to a hit location on the widget

Windows
MacOS
Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Components/WidgetComponent.h

Include

#include "Components/WidgetComponent.h"

Source

/Engine/Source/Runtime/UMG/Private/Components/WidgetComponent.cpp

Syntax

virtual void GetLocalHitLocation
(
    FVector WorldHitLocation,
    FVector2D & OutLocalHitLocation
) const

Remarks

Converts a world-space hit result to a hit location on the widget

Parameters

Parameter

Description

HitResult

The hit on this widget in the world

(Out)

The transformed 2D hit location on the widget

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss