Hello!
I’m trying to display the players in the current room to a text object (4.6 ui).
This is what I’ve tried, however the output is “PhotonPlayer”…
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class NetworkTextdisplay : MonoBehaviour {
public text playerListText;
void OnJoinedRoom() {
playerListText.text = (PhotonNetwork.otherPlayers.ToString());
}
}