FGameplayDebuggerCategory::GetViewPoint

Returns view location and direction from replicated data if available or will extract it from the provided player controller.

Windows
MacOS
Linux

References

Module

GameplayDebugger

Header

/Engine/Source/Developer/GameplayDebugger/Public/GameplayDebuggerCategory.h

Include

#include "GameplayDebuggerCategory.h"

Source

/Engine/Source/Developer/GameplayDebugger/Private/GameplayDebuggerCategory.cpp

Syntax

bool GetViewPoint
(
    const APlayerController * OwnerPC,
    FVector & OutViewLocation,
    FVector & OutViewDirection
) const

Remarks

Returns view location and direction from replicated data if available or will extract it from the provided player controller. The replicated data is used first since it might be provided from a detached camera.

Returns

whether OutViewLocation and OutViewDirection were assigned to valid values @note Method is expected to always return valid outputs if valid controller is provided. Otherwise it depends if the view information has been replicated before the methods gets called.