ASpectatorPawn

SpectatorPawns are simple pawns that can fly around the world, used by PlayerControllers when in the spectator state.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Engine

Header

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

Include

#include "GameFramework/SpectatorPawn.h"

Syntax

class ASpectatorPawn : public ADefaultPawn

Remarks

SpectatorPawns are simple pawns that can fly around the world, used by PlayerControllers when in the spectator state.

Constructors

Name Description

Public function

ASpectatorPawn

(
    const FObjectInitializer& ObjectIn...
)

Overridden from ADefaultPawn

Name Description

Public function Virtual

void

 

LookUpAtRate

(
    float Rate
)

Called via input to look up at a given rate (or down if Rate is negative).

Public function Virtual

void

 

TurnAtRate

(
    float Rate
)

Called via input to turn at a given rate.

Overridden from APawn

Name Description

Public function Virtual

void

 

PossessedBy

(
    AController* NewController
)

Overridden to avoid changing network role.