UPlayer

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

APlayerControll...

 

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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback