Instantiate doesn't work in offline mode

Hello,

PhotonNetwork.Instantiate should work in offline mode, however, it is throwing the following error despite offline mode being enabled:

Failed to Instantiate prefab: player 3D. Client should be in a room. Current connectionStateDetailed: ConnectedToMaster
UnityEngine.Debug:LogError(Object)
PhotonNetwork:Instantiate(String, Vector3, Quaternion, Int32, Object[]) (at Assets/Standard Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonNetwork.cs:2431)
PhotonNetwork:Instantiate(String, Vector3, Quaternion, Int32) (at Assets/Standard Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonNetwork.cs:2414)
com.cyborgAssets.smashCars.Assets.com.cyborgAssets.photonMine.PhotonUNetGameManagerMine:StartGameLogic() (at Assets/com/cyborgAssets/photonMine/PhotonUNetGameManagerMine.cs:84)
com.cyborgAssets.smashCars.Assets.com.cyborgAssets.photonMine.PhotonUNetGameManagerMine:StartSinglePlayer() (at Assets/com/cyborgAssets/photonMine/PhotonUNetGameManagerMine.cs:48)
UnityEngine.EventSystems.EventSystem:Update()


How to solve this ?
Thanks.

(Unity 5.4.3f1
downloaded pun sdk few days ago (version is very new))

Comments

  • Even in offline mode you need to be in a room for most things to work properly (don't ask). Just call PhotonNetwork.CreateRoom(null) before calling PhotonNetwork.Instantiate().
  • @sKipper you answered him after two years, will you solve my problem after two years too? xd