Hi, there is a weird problem.
if i direct drag other gameObject reference from the scene to Action node like SetVisibility Action.
after i build the game, the gameObject reference is gone.
and it only appears if the BehaviourTree is Asset, not happened in Bound BT.
As of Unity standard limitation, .asset files can not reference scene object files and this is why an Asset Graph can’t do so as well.
The way around this if you want to use Asset Graphs, is to use Variables. So instead of directly assigning scene object references to action/condition parameters, you can link those parameters to variables (by clicking the radio button)
Because variables are stored in the Blackboard component, which lives in the scene attached on a gameobject, it is possible for them to have scene object references.
Once again, this is just how Unity works 🙂
Let me know if you need any further clarification or help with this (or of course anything else).
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.