Reply To: Destroyed objects trigger NullReferenceExceptions when loading a scene

Forums 💬 NodeCanvas ⚙️ Support Destroyed objects trigger NullReferenceExceptions when loading a scene Reply To: Destroyed objects trigger NullReferenceExceptions when loading a scene

#17100
Gavalakis
Keymaster

    Hello,

    Ah, I see what is going on. Even if it’s a very special case, it’s nice to have everything cleaned up, so thanks for reporting this 🙂
    If by “fake null” you mean something like that !value.value.Equals(null), then this is what I usually do to make sure that the UnityObject is truly null and what I just added in the GetVariable to avoid this problem.

    Thanks for letting me know.