Shared variables that can only reference a variable of a behavior tree.

pk1234

New member
I hope I understand this correctly - shared variables in the inspector of a task can be set to a value directly, just like as if it were a normal public / serialized field, or reference a variable of the behavior tree they are in.

Is there a way to only allow a shared variable to reference a behavior tree variable? I like to setup references in the task inspector, but currently I don't get the (None) ! red warning unless I click the little circle icon next to the shared variable in the inspector, which is a bit annoying, since for some shared variables, I know that they only act as references, and must not be null.
 
Top