Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Photon and Loading Screens

$
0
0
Hi everyone, I'm bit confused on how to create a simple loading screen with Photon.

I have the PhotonNetwork.automaticallySyncScene = true so all the clients in the same room join the same level selected by the master client.

I understand that I must set isMessageQueueRunning = false so PUN won't dispatch incoming messages but how do I know that the level itself finished loading? In normal terms I would use LoadLevelAsync() but I have read that PUN does not make use of that method.

The process that Im taking is this:
1 - Create or join room
2 - OnCreateRoom() I use the PhotonNetwork.LoadLevel() to enter the level
3 - Loading Screen Scene - finishes when the level selected above finished loading -> The problem
4 - Spawn Characters on Awake ( ... )

Am I making a big confusion with this or what? :D
Can some one enlighten this matter?

Thank you. :)

Viewing all articles
Browse latest Browse all 15755

Trending Articles