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)

Comments

  • swatantra
    Options
    I am using PUN2
  • JohnTube
    JohnTube ✭✭✭✭✭
    edited July 2019
    Options
    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?
  • swatantra
    Options
    Once I restarted Unity, it was gone
  • TK0099999
    TK0099999
    edited April 2020
    Options
    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.
  • TK0099999
    Options
    TK0099999 wrote: »
    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.

    I solved it. It's my wrong. I toggled Split Application Binary in player settings.