APlayerController::GetHitResultUnderCursorForObjects

Performs a collision query under the mouse cursor, looking for object types

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 GetHitResultUnderCursorForObjects
(
    const TArray< TEnumAsByte< EObjectTypeQuery > > & ObjectTypes,
    bool bTraceComplex,
    FHitResult & HitResult
) const

Remarks

Performs a collision query under the mouse cursor, looking for object types

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