What does PhotonNetwork.IsConnected exactly mean?

Options
PhotonNetwork.IsConnected boolean is true if you are connected the Name Server or the regional Master Server?

Answers

  • Tells if we are already connected to Photon
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Kurdiez,

    Thank you for choosing Photon!
    /// <summary>Returns if this client is currently connected or connecting to some type of server.</summary>
            /// <remarks>This is even true while switching servers. Use IsConnectedAndReady to check only for those states that enable you to send Operations.</remarks>
            public bool IsConnected { get { return this.LoadBalancingPeer != null && this.State != ClientState.PeerCreated && this.State != ClientState.Disconnected; } }