UViewportInteractor::GetHitResultFromLaserPointer

Traces along the laser pointer vector and returns what it first hits in the world

Windows
MacOS
Linux

Deprecated

  • bool bIgnoreGizmos replaced with EHitResultGizmoFilterMode GizmoFilterMode

References

Module

ViewportInteraction

Header

/Engine/Source/Editor/ViewportInteraction/Public/ViewportInteractor.h

Include

#include "ViewportInteractor.h"

Syntax

virtual FHitResult GetHitResultFromLaserPointer
(
    TArray< AActor * > * OptionalListOfIgnoredActors,
    const bool bIgnoreGizmos,
    TArray< UClass * > * ObjectsInFrontOfGizmo,
    const bool bEvenIfBlocked,
    const float LaserLengthOverride
)

Remarks

Traces along the laser pointer vector and returns what it first hits in the world

Returns

What the laster pointer hit

Parameters

Parameter

Description

OptionalListOfIgnoredActors

Actors to exclude from hit testing

bIgnoreGizmos

True if no gizmo results should be returned, otherwise they are preferred (x-ray)

bEvenIfUIIsInFront

If true, ignores any UI that might be blocking the ray

LaserLengthOverride

If zero the default laser length (VREdMode::GetLaserLength) is used

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