AGameModeBase::CanSpectate

Return whether Viewer is allowed to spectate from the point of view of ViewTarget.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h

Include

#include "GameFramework/GameModeBase.h"

Syntax

bool CanSpectate
(
    APlayerController * Viewer,
    APlayerState * ViewTarget
)

Remarks

Return whether Viewer is allowed to spectate from the point of view of ViewTarget.

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