UnityEvent NullReferenceException

Discussion and help for Easy Save 3
Post Reply
DanielThomas
Posts: 2
Joined: Wed Aug 19, 2020 7:54 pm

UnityEvent NullReferenceException

Post 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?
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: UnityEvent NullReferenceException

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
DanielThomas
Posts: 2
Joined: Wed Aug 19, 2020 7:54 pm

Re: UnityEvent NullReferenceException

Post by DanielThomas »

PM sent.
Post Reply