UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WidgetInteractionComponent.h File Reference
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/UObjectGlobals.h"
#include "InputCoreTypes.h"
#include "Engine/HitResult.h"
#include "Components/SceneComponent.h"
#include "GenericPlatform/GenericApplication.h"
#include "Layout/WidgetPath.h"
#include "WidgetInteractionComponent.generated.h"

Go to the source code of this file.

Classes

class  UWidgetInteractionComponent
 
struct  UWidgetInteractionComponent::FWidgetTraceResult
 

Enumerations

enum class  EWidgetInteractionSource : uint8 { World , Mouse , CenterScreen , Custom }
 

Functions

 DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnHoveredWidgetChanged, UWidgetComponent *, WidgetComponent, UWidgetComponent *, PreviousWidgetComponent)
 

Enumeration Type Documentation

◆ EWidgetInteractionSource

The interaction source for the widget interaction component, e.g. where do we try and trace from to try to find a widget under a virtual pointer device.

Enumerator
World 

Sends traces from the world location and orientation of the interaction component.

Mouse 

Sends traces from the mouse location of the first local player controller.

CenterScreen 

Sends trace from the center of the first local player's screen.

Custom 

Sends traces from a custom location determined by the user. Will use whatever FHitResult is set by the call to SetCustomHitResult.

Function Documentation

◆ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams()

DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams ( FOnHoveredWidgetChanged  ,
UWidgetComponent ,
WidgetComponent  ,
UWidgetComponent ,
PreviousWidgetComponent   
)