PhotonNetwork Error: Game is not connected

I am using Unity to create a online MOBA for my university project but i am trying to Instantiate a gate prefab i have made but when i play the game i get the following error:

PhotonNetwork Error: could not instantiate the prefab [GateRed] as the game is not connected.

i have no idea why this is happening, i am connected to the internet and can still join the room, and is the code i am using to instantiate it

GameObject RedGate = (GameObject)PhotonNetwork.Instantiate ("GateRed", this.transform.position, this.transform.rotation,0);

i have a photonview also attached and i have no other problems other then this one
hopefully someone can help me solve it


  • You need to be connected and in a room before you can instantiate something.
    The error message seems to be misleading, if you are really connected in the first place.
Sign In or Register to comment.