UViewportInteractor::GetLaserPointer

Gets the start and end point of the laser pointer for the specified hand

Windows
MacOS
Linux

References

Module

ViewportInteraction

Header

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

Include

#include "ViewportInteractor.h"

Syntax

bool GetLaserPointer
(
    FVector & LaserPointerStart,
    FVector & LaserPointerEnd,
    const bool bEvenIfBlocked,
    const float LaserLengthOverride
)

Remarks

Gets the start and end point of the laser pointer for the specified hand

Returns

True if we have motion controller data for this hand and could return a valid result

Parameters

Parameter

Description

HandIndex

Index of the hand to use

LasertPointerStart

(Out) The start location of the laser pointer in world space

LasertPointerEnd

(Out) The end location of the laser pointer in world space

bEvenIfBlocked

If true, returns a laser pointer even if the hand has UI in front of it (defaults to false)

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