APlayerController::GetSpectatorPawn

Get the Pawn used when spectating. nullptr when not spectating.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/PlayerController.h"

Syntax

ASpectatorPawn * GetSpectatorPawn() const

Remarks

Get the Pawn used when spectating. nullptr when not spectating.

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