UGameInstance::AddLocalPlayer

Adds a LocalPlayer to the local and global list of Players.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/GameInstance.h

Include

#include "Engine/GameInstance.h"

Source

/Engine/Source/Runtime/Engine/Private/GameInstance.cpp

Syntax

virtual int32 AddLocalPlayer
(
    ULocalPlayer * NewPlayer,
    int32 ControllerId
)

Remarks

Adds a LocalPlayer to the local and global list of Players.

Parameters

Parameter

Description

NewPlayer

the player to add

ControllerId

id of the controller associated with the player

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss