Photon.Pun.Simple.Internal.TickManager have null
Is this a bug?
I got null reference error at installation.
using win10
unity 2020.2
pun 2.25
photon lib 4.1.4.7
Does anyone have a solution?
I got null reference error at installation.
using win10
unity 2020.2
pun 2.25
photon lib 4.1.4.7
Does anyone have a solution?
0
Best Answers
-
emotitron ✭✭
There is a fix that may not be live in the asset store yet, that may address this problem with Unity Beta versions. In TickManager:[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)] public static void Bootstrap() { single = new TickManager(); PhotonNetwork.NetworkingClient.AddCallbackTarget(single); }
The change to RuntimeInitializeLoadType.AfterSceneLoad has helped someone else experiencing this race condition.1
Answers
I forgot to attach the image.
Please let me know if you have any necessary information.
Be sure to get the latest, we made some quick patches after adding Simple. Current pun2 is 2.26
Let us know if there problem persists.
Unity2020.2.0b14,
Unity2020.2.0b13,
2D,3D,URP
I tried these, but not all.
Unity2020.1.17f1
This works fine.
There is an error, even if it is empty, Same for demo.
Is this just my environment?
The change to RuntimeInitializeLoadType.AfterSceneLoad has helped someone else experiencing this race condition.
As of now, the error is gone with the above mentioned solution!