Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/APlayerController
- APlayerController::SetSpectatorPawn()
- ADebugCameraController::SetSpectatorPawn()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h |
| Include | #include "GameFramework/PlayerController.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PlayerController.cpp |
virtual void SetSpectatorPawn
&40;
ASpectatorPawn &42; NewSpectatorPawn
&41;
Remarks
Set the spectator pawn. Will also call AttachToPawn() using the new spectator.