Received an error : Unity version 2019.1.4f : Using PUN2
Options
NullReferenceException: Object reference not set to an instance of an object
Photon.Pun.PhotonNetwork..cctor () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:989)
Rethrow as TypeInitializationException: The type initializer for 'Photon.Pun.PhotonNetwork' threw an exception.
Photon.Pun.PhotonEditor.OnUpdate () (at Assets/Photon/PhotonUnityNetworking/Code/Editor/PhotonEditor.cs:200)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:200)
Photon.Pun.PhotonNetwork..cctor () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:989)
Rethrow as TypeInitializationException: The type initializer for 'Photon.Pun.PhotonNetwork' threw an exception.
Photon.Pun.PhotonEditor.OnUpdate () (at Assets/Photon/PhotonUnityNetworking/Code/Editor/PhotonEditor.cs:200)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:200)
0
Comments
-
I am using PUN20
-
Hi @swatantra,
How to reproduce this?
What are the minimal repro steps?
Does this happen in a new fresh clean empty 2019.1.4f project with PUN2 only imported?
What PUN2 version is this?0 -
Once I restarted Unity, it was gone0
-
Hi, I met same issue while I compiled on Android I used PUN2 v2.14 and Unity v2019.2.6f1 and my desktop OS both Window 10 or Mac OS also same issue
how do I solve the issue? plz.0 -