Reply To: Losing BB variables/references after compiling

NodeCanvas Forums Support Losing BB variables/references after compiling Reply To: Losing BB variables/references after compiling

#11260
lolzor
Participant

The behavior described above just changed a little bit after I relaunched Unity (5.3.5f1). Here is the detailed description :

1- I have a perfectly fine FSM window, everything is working. I introduced a small mistake anywhere in the code and CTRL-R to recompile.

2- The FSM Window completely disappears. If I go to Tools/ParadoxNotion in the Unity Menu bar, the submenu does not appear. If I go to the gameobject the FSM is attached to, I have the FSM Owner Component displaying only the script name (FSMOwner) and then a grayed out line with “Start Called” and an unchecked checkbox. The “Edit FSM” button is not present. The Blackboard component below displays the script name (Blackboard) and a line with “Serialized Blackboard” followed by a string. Third line is an empty Object Reference array.

3- Correcting the mistake and CTRL-R to recompile. First error thrown in the console :

NullReferenceException: Object reference not set to an instance of an object

Then more than 300 identical errors :

Then at the end, this single error :

Exception: Error while parsing: unable to parse; invalid token "="; context = <=null]]"}}}s":{"bb_CurrentBrain":{"_value":{},"_na>

(bb_CurrentBrain is one of my BB variable)

4- The window is still missing. But if I click away in the hierarchy then click back to the gameobject owning the FSM, the FSM window then immediately pops up back on the screen, and the FSM is then working fine.

Thank you very much for taking the time to help me !