Page 1 of 1

(Solved) Issue that prevents menu from working

Posted: Fri Aug 13, 2021 8:53 pm
by Cheezey_Cheese
( NullReferenceException: Object reference not set to an instance of an object
Photon.Pun.PhotonNetwork.StaticReset () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:1051)
Photon.Pun.PhotonNetwork..cctor () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:1028)
Rethrow as TypeInitializationException: The type initializer for 'Photon.Pun.PhotonNetwork' threw an exception.
Photon.Pun.PhotonViewInspector.OnInspectorGUI () (at Assets/Photon/PhotonUnityNetworking/Code/Editor/PhotonViewInspector.cs:72)
UnityEditor.InspectorWindow.DoOnInspectorGUI (System.Boolean rebuildOptimizedGUIBlock, UnityEditor.Editor editor, System.Boolean wasVisible, UnityEngine.Rect& contentRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1647)
UnityEditor.PopupCallbackInfo:SetEnumValueDelegate(Object, String[], Int32) ) -Console line from version 1.82 after updating my PUN2-

Re: Issue that prevents menu from working

Posted: Sat Aug 14, 2021 7:27 pm
by Lovatto
The error log that you posted doesn't point to any MFPS script,
can you explain with detail how you reproduce the problem.

Re: Issue that prevents menu from working

Posted: Mon Aug 16, 2021 3:33 pm
by Cheezey_Cheese
I've already fixed it, it happened due to me actually importing Photon after MFPS instead of before.