Question by
Danieltech607 · Apr 04, 2017 at 12:23 PM ·
photon
Photon Networking - How I can see if the player is the host? - C#
Hi boys, I have a question : how can I see if the player is the host of the lobby? I'm using Photon Network and C#, thanks in advance.
Comment
Best Answer
Answer by ChristianSimon · Apr 06, 2017 at 08:31 AM
Hi,
the lobby doesn't have a host. Only rooms have hosts which are called the MasterClients in Photon.
You can check the PhotonNetwork.isMasterClient
condition in order to see if you are the MasterClient (only inside rooms).
Your answer
