UGameViewportClient::NotifyPlayerAdded

Notifies all interactions that a new player has been added to the list of active players.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h

Include

#include "Engine/GameViewportClient.h"

Source

/Engine/Source/Runtime/Engine/Private/GameViewportClient.cpp

Syntax

virtual void NotifyPlayerAdded
(
    int32 PlayerIndex,
    class ULocalPlayer * AddedPlayer
)

Remarks

Notifies all interactions that a new player has been added to the list of active players.

Parameters

Parameter

Description

PlayerIndex

the index [into the GamePlayers array] where the player was inserted

AddedPlayer

the player that was added