Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: heiterbiswolkig on October 02, 2016, 03:09:42 PM

Title: PUN - In room error although I AM in room.
Post by: heiterbiswolkig 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
Title: Re: PUN - In room error although I AM in room.
Post by: jeanfabre 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