Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Photon Peer Created state stuck?

Discussion in 'Scripting' started by johnsacpe, Jul 9, 2014.

  1. johnsacpe

    johnsacpe

    Joined:
    Jan 25, 2014
    Posts:
    6
    I was trying to create a simple FPS based multiplayer game, but Photon stuck in "Peer created" state.

    Code (CSharp):
    1. public class NetworkManager : MonoBehaviour {
    2.  
    3.     void Start () {
    4.  
    5.     }
    6.  
    7.     void Update () {
    8.  
    9.     }
    10.  
    11.     void Connect () {
    12.         PhotonNetwork.ConnectUsingSettings ("v0.5");
    13.     }
    14.  
    15.     void OnGUI ()
    16.     {
    17.         GUI.Label (new Rect (0, 0, 400, 50), PhotonNetwork.connectionStateDetailed.ToString ());
    18.     }
    19. }

    What's the problem with it?
     
  2. johnsacpe

    johnsacpe

    Joined:
    Jan 25, 2014
    Posts:
    6
    Okay, looks like I was too tired to call the Connect function. It was my fault.
     
    AwaisMayo likes this.
  3. siddharth3322

    siddharth3322

    Joined:
    Nov 29, 2013
    Posts:
    1,042
    I have changed cloud region of photon network and it solved my problem.
     
  4. lobart78

    lobart78

    Joined:
    Jan 21, 2018
    Posts:
    1
    In my case, i had selected Web Socket Secure protocol, and after selecting Udp protol it solved my problem
     
  5. alideveloper95

    alideveloper95

    Joined:
    Oct 5, 2017
    Posts:
    4
    Capture2.PNG Capture2.PNG
     

    Attached Files:

  6. merttugkan

    merttugkan

    Joined:
    Nov 12, 2016
    Posts:
    1
    Also if you chose offline mode in photon settings that cause it too.