Field value lost ISSUE in Editor

NodeCanvas Forums Support Field value lost ISSUE in Editor

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11108
    wangwentao1
    Participant

    I use NodeCanvas with Unity 5.4 b22. When I am using a FSM/BT action like SetActive action, if I drag a gameObject to the editor field. If will always be lost after I closed the scene or reopened the unity. I founded that using blackboard to cache the variable is ok. But what is the reason of this issue?

    #11115
    Gavalakis
    Keymaster

    Hello,

    You are most probably using an Asset Graph and as per Unity standard, asset files can not have scene object references.
    Using Blackboard variables is one way of bypassing this Unity limitation. This works because the Blackboard is a component on a non-asset scene object.
    Alternatively, you can also use a Bound graph instead of an Asset graph, within which it IS possible to have scene object references because it is saved alongside the gameobject and is not an asset.

    Let me know if this works for you.
    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.