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?
UnityEvent NullReferenceException
Re: UnityEvent NullReferenceException
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
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
-
- Posts: 2
- Joined: Wed Aug 19, 2020 7:54 pm