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?
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
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.