UPlayer

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Player.h

Include

#include "Engine/Player.h"

Syntax

class UPlayer :
    public UObject,
    public FExec

Variables

Name Description

Public variable

int32

 

ConfiguredInternetSpeed

Public variable

int32

 

ConfiguredLanSpeed

Public variable

int32

 

CurrentNetSpeed

Net variables.

Public variable

TObjectPtr< cla...

 

PlayerController

The actor this player controls.

Constructors

Name Description

Public function

UPlayer

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

FString

 

ConsoleCommand

(
    const FString& Cmd,
    bool bWriteToLog
)

Executes the Exec() command

Public function Const

APlayerContr...

 

GetPlayerController

(
    const UWorld*const InWorld
)

Gets the player controller in the given world for this player.

Public function Virtual

void

 

SwitchController

(
    APlayerController* PC
)

Dynamically assign Controller to Player and set viewport.

Overridden from FExec

Name Description

Public function Virtual

bool

 

Exec

(
    UWorld* InWorld,
    const TCHAR* Cmd,
    FOutputDevice& Ar
)

Exec handler