Scene object reference error does not appear on detached nodes

bdg_toast

New member
Hi there,

When setting up some custom nodes I noticed that references to Transform, GameObject, or SharedTransform will not save on external behaviour trees. Once actually attached to the tree a helpful "Behavior tree variables at the project level cannot reference objects within a scene." error appears but this does not appear on detached nodes.

As I was setting up nodes and tooling, without actually running the nodes (therefore no reason to attach it to a tree), this limitation caught me by surprise. It would be really helpful if this error also appeared on detached nodes, or in the console when saving the tree.

Cheers
 
I am going back and forth on this. The detached tasks are not checked for errors because they are not used by the behavior tree and therefore cannot cause any errors at runtime. You should get the errors when you connect the tasks again.
 
Top