when a player joins/leaves a room

Options
Hi, I've spent the last hour or so trying to find any docs on how to handle player room joins when using Photon. I can not find a single thing about this on http://doc-api.exitgames.com/ or google. I need to be able to handle if a player joins my room, if a room was created and I as a player joins it, if a player leaves my room and so on.

Are there anywhere that I can find complete docs about this topic, maybe a page with a search function even? Or does photon not handle these things? Should UN be used rather then PUN here?

Comments

  • dontonka
    Options
    Hey Gatsu,

    Did you really look at the entire PUN/PUN+ API doc here?
    http://doc-api.exitgames.com/en/pun/current/pun/doc/

    You should find all the information you need :). You wanna looks at callbacks like OnJoinedRoom, OnPhotonPlayerConnected, OnPhotonPlayerDisconnected, OnPhotonRandomJoinFailed, etc.

    Cheers,
    Don T.