Search Unity

Third Party PUN 2 : How to wait before loading a scene ?

Discussion in 'Multiplayer' started by Spyco01Dev, Jun 22, 2022.

  1. Spyco01Dev

    Spyco01Dev

    Joined:
    Oct 14, 2017
    Posts:
    2
    I've been using PUN 1 a lot before and I'm on a new project, trying to switch to PUN 2.

    However I seen that PhotonNetwork.LoadLevelAsync() doesn't exist anymore and is replaced by PhotonNetwork.LoadLevel() which is executed Asyncronously but isn't an AsyncOperation.

    So I would like to know how could I make all players preload a scene before actually changing to it, like it was possible before by turning asyncOperation.allowSceneActivation to false.
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,066