Search Unity

Resolved OnPlayerJoin event

Discussion in 'Netcode for GameObjects' started by socotcho, May 26, 2023.

  1. socotcho

    socotcho

    Joined:
    Jul 6, 2021
    Posts:
    1
    Hello,

    I am searching for a way to subscribe to an event called everytime a Clients connects to the Network.
    (it's for setting up my inventory system and add the player to a list of my singleton containing the players)

    Thank you by advance !
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,005
    OnClientConnected
    see manual it's practically right there under connection management
     
    RikuTheFuffs-U and LaneFox like this.