Navigation
API > API/Runtime > API/Runtime/GameplayDebugger > API/Runtime/GameplayDebugger/FGameplayDebuggerCategory
Description
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.
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.
| Name | GetViewPoint |
| Type | function |
| Header File | /Engine/Source/Runtime/GameplayDebugger/Public/GameplayDebuggerCategory.h |
| Include Path | #include "GameplayDebuggerCategory.h" |
| Source | /Engine/Source/Runtime/GameplayDebugger/Private/GameplayDebuggerCategory.cpp |
bool GetViewPoint
(
const APlayerController * OwnerPC,
FVector & OutViewLocation,
FVector & OutViewDirection
) const
whether OutViewLocation and OutViewDirection were assigned to valid values