PUN2 Loading Screen Problem
Options
Hello,
I have recently purchased an asset for loading screen. However, I need to call
Thanks in advance.
I have recently purchased an asset for loading screen. However, I need to call
LoadingScreenPro.LoadScene()
instead of PhotonNetwork.LoadLevel()
. What should I do? And idea? Thanks in advance.
0
Best Answer
-
You can use any loading you want and are not tied to LoadLevel().
To make sure incoming messages are queued until the scene was loaded, you can set isMessageQueueRunning = false before you load. If there are several scenes as option to load, you want to sync the scene (id or name) in the Room Properties and have everyone load this (asap, basically) when it changes.
Some background (written for PUN 1 but still valid background):
https://doc.photonengine.com/en-us/pun/v1/getting-started/feature-overview#_messageQ
Another option would be to include LoadingScreenPro.LoadScene() into PhotonNetwork.LoadLevel() where applicable. This is maybe simpler, as PUN can network sync the level for you then.5
Answers
-
You can use any loading you want and are not tied to LoadLevel().
To make sure incoming messages are queued until the scene was loaded, you can set isMessageQueueRunning = false before you load. If there are several scenes as option to load, you want to sync the scene (id or name) in the Room Properties and have everyone load this (asap, basically) when it changes.
Some background (written for PUN 1 but still valid background):
https://doc.photonengine.com/en-us/pun/v1/getting-started/feature-overview#_messageQ
Another option would be to include LoadingScreenPro.LoadScene() into PhotonNetwork.LoadLevel() where applicable. This is maybe simpler, as PUN can network sync the level for you then.5 -
Thanks Tobias!0