Blackboard + prefab serialization issue on Play

NodeCanvas Forums Support Blackboard + prefab serialization issue on Play

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9490

    Hello,

    I’m running into a problem with the blackboard variables: they reset on Play when the Blackboard is part of a prefab. I’ll do my best to explain it in text, but I’ve also recorded a video that shows what I mean. The link is below.

    – I have a prefab that includes a FSM and a blackboard (and other gameobject, but irrelevant)
    – That prefab has an instance in my scene – not dymanically instanciated, it is a normal game object in the scene hierarchy at edit time
    – I change a List<> variable: I assign a previously null element to a game object
    – I hit “Play”
    – The assigned list element reverts back to null and stays that way even after stopping.

    I’m guessing that the editor doesn’t seem the “_serializedBlackboard” variable as overridden and uses the prefab value instead of the instance value. However, it only appears to happen with List<> so I am not sure.

    https://dl.dropboxusercontent.com/u/27068517/Screen%20Capture%20Tool_2015-08-28%2008.43.20.mov

    Unity 5.1.2f1
    NC 2.? (not exactly sure of the version I’m using in that project and I don’t have time to recreate the problem on a test project at the moment – appologies if this has been solved in the most recent update, but I haven’t seen any mention in the release notes or on this forum).

    #9491
    Gavalakis
    Keymaster

    Hello,

    Thanks for the explanation and video.
    There was a related issue some versions back regarding this, but has now been solved.
    I can’t replicate this issue in the last version at all 🙂

    Let me know if it somehow apears in the last version when you upgrade.
    Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.