How do I get the list of all online photon players and send them game invitations?
Options
foreach( PhotonPlayer player in PhotonNetwork.playerList)
{
print(player.name);
}
This returns only current player and not all players
{
print(player.name);
}
This returns only current player and not all players
0
Answers
-
This function return every PhotonPlayer in a room. If your not in a room, it will fail.
[EDIT]
http://forum.unity3d.com/threads/photon-how-to-handle-a-friends-list.283904/0