UGameInstance::AddLocalPlayer

Syntax

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

References

Module

Engine

Header

Runtime/Engine/Classes/Engine/GameInstance.h

Source

Runtime/Engine/Private/GameInstance.cpp