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