Navigation
API > API/Runtime > API/Runtime/Engine
SpectatorPawns are simple pawns that can fly around the world, used by PlayerControllers when in the spectator state.
| Name | ASpectatorPawn |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/SpectatorPawn.h |
| Include Path | #include "GameFramework/SpectatorPawn.h" |
Syntax
UCLASS (Config=Game, Blueprintable, BlueprintType, NotPlaceable, MinimalAPI)
class ASpectatorPawn : public ADefaultPawn
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → AActor → APawn → ADefaultPawn → ASpectatorPawn
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ASpectatorPawn
(
const FObjectInitializer& ObjectInitializer |
GameFramework/SpectatorPawn.h |
Functions
Public
Overridden from ADefaultPawn
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void LookUpAtRate
(
float Rate |
Called via input to look up at a given rate (or down if Rate is negative). | GameFramework/SpectatorPawn.h | |
virtual void TurnAtRate
(
float Rate |
Called via input to turn at a given rate. | GameFramework/SpectatorPawn.h |
Overridden from APawn
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PossessedBy
(
AController* NewController |
Overridden to avoid changing network role. | GameFramework/SpectatorPawn.h |