Page 1 of 1

UnityEvent NullReferenceException

Posted: Sat Aug 22, 2020 1:03 am
by DanielThomas
Hi,
I'm having a problem with UnityEvent after loading my prefab.

I have my prefab which has a class containing a Unity Event, I save the gameobject at runtime, but after loading the gameobject's Unityevent return NullReferenceException. A simple debug.log(theUnityEvent) also return "null".

The Event still show in the inspector (although it's invoke fields are gone, which is expected).

Any ideas what could be the reason?

Re: UnityEvent NullReferenceException

Posted: Mon Aug 24, 2020 7:46 am
by Joel
Hi there,

Please could you create a basic script which replicates this so I can replicate this at my end? Also would you be able to show me the full stack trace of the error you're getting?

All the best,
Joel

Re: UnityEvent NullReferenceException

Posted: Mon Aug 24, 2020 6:44 pm
by DanielThomas
PM sent.