FGameplayDebuggerCategory::IsLocationInViewCone

Indicates if a given location is within a vision cone built from provided view location and direction based on MaxViewDistance and MaxViewAngle from GameplayDebuggerUserSettings

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

static bool IsLocationInViewCone
(
    const FVector & ViewLocation,
    const FVector & ViewDirection,
    const FVector & TargetLocation
)

Remarks

Indicates if a given location is within a vision cone built from provided view location and direction based on MaxViewDistance and MaxViewAngle from GameplayDebuggerUserSettings