playMaker

Author Topic: PUN - In room error although I AM in room.  (Read 1687 times)

heiterbiswolkig

  • Playmaker Newbie
  • *
  • Posts: 23
PUN - In room error although I AM in room.
« on: October 02, 2016, 03:09:42 PM »
The structure is very easy:
1. I connect to Photon
2. Then with a button i send the global transition event to the join state
3. see image

the it stops in the last state with that:

Failed to Instantiate prefab: Player. Client should be in a room. Current connectionStateDetailed: ConnectedToMaster
UnityEngine.Debug:LogError(Object)

thanks for help again!

Florian

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PUN - In room error although I AM in room.
« Reply #1 on: November 01, 2016, 02:27:37 AM »
Hi,

 joining a room is an asynchronous process, the action merely asks for it, but you can't only be sure you are in a room by checking every frame or listen to the global event "Photon / ON JOINED ROOM"

Bye,

 Jean