UWidgetComponent::GetCylinderHitLocation

When using [EWidgetGeometryMode::Cylinder](API\Runtime\UMG\Components\EWidgetGeometryMode), continues the trace from the front face of the widget component into the cylindrical geometry and returns adjusted hit results information.

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

TTuple< FVector, FVector2D > GetCylinderHitLocation
(
    FVector WorldHitLocation,
    FVector WorldHitDirection
) const

Remarks

When using EWidgetGeometryMode::Cylinder, continues the trace from the front face of the widget component into the cylindrical geometry and returns adjusted hit results information.

Returns

two hit locations FVector is in world space and a FVector2D is in widget-space.

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