APlayerController::GetHitResultAtScreenPosition

Returns hit results from doing a collision query at a certain location on the screen

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h

Include

#include "GameFramework/PlayerController.h"

Source

/Engine/Source/Runtime/Engine/Private/PlayerController.cpp

Syntax

bool GetHitResultAtScreenPosition
(
    const FVector2D ScreenPosition,
    const TArray< TEnumAsByte< EObjectTypeQuery > > & ObjectTypes,
    bool bTraceComplex,
    FHitResult & HitResult
) const

Remarks

Returns hit results from doing a collision query at a certain location on the screen

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