Reply To: [BUG] Blackboard losing UnityEngine.Object references

NodeCanvas Forums Support [BUG] Blackboard losing UnityEngine.Object references Reply To: [BUG] Blackboard losing UnityEngine.Object references

#15851
anton petrov
Participant

Hello there, I am really sorry but unfortunately I wasn’t able to fully work on this for the past two weeks due to other matters. To be honest, it is also one of the hardest issues I’ve come across to fix because from my leads it really has to do with the internal Unity UnityEngine.Object handling and life-cycle. However, now that I am back from those other matters I will attack this issue again. Thank you.

Hi, Gavalakis

 

To fix this issue I think you have to remove all code from OnAfterDeserialize() and do everything in lazy manner (this is to avoid complete redesign). I mean instead of deserializing BlackboardSource in OnAfterDeserialize() do it later when _blackboard variable is requested.