Why I can not serialize Blackboard as Asset

FlowCanvas Forums Support Why I can not serialize Blackboard as Asset

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #427
    donaldw
    Participant

    Fact 1: FlowScript can run with blackboard;
    Fact 2: FlowScript can be serialized into external asset.
    Paradox: Blackboard can NOT be serialized into external asset while FlowScript can.

    They are usually twins but why they don’t have equal rights?

    #428
    Gavalakis
    Keymaster

    Hello,

    The fact that Blackboards are a component and different than a flowScript is done by design. The most important reason that blackboards are a different component on the owner even when a flowscript asset is being used by that owner is the following:

    – As per the default unity limitation, asset files can’t have references to scene objects. Having the blackboard be a different component in the owner gameobject while working with an asset flowscript, allows you to work with scene object references through the blackboard variables. If the blackboard was also an asset in this case, it would be impossible to have and use scene object references in an asset flowscript.

    Can you please let me know why you would want a blackboard as an asset and I could provide a solution to the problem.

    Thanks.

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

    #429
    donaldw
    Participant

    It’s ok then.
    I put blackboard in one big prefab, which also has renderer, animator with it. In this case, I don’t want to duplicate this big prefab for the blackboard’s sake, therefore I want blackboard to be one external asset.

    Now, I seperate the blackboard away from this big prefab as a blackboard prefab, and the big prefab instantiate this blackboard prefab according big prefab’s configuration.

    you are right about the blackboard design. great works.

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