Hi! I'm new to Behavior Designer, so I'm sorry if my question is a bit dumb or naive, but this is the first stumbling block I encountered.
I am writing a new task for my behavior tree, and I would like to use a generalized system (currently it's just a component on the gameobject the behavior tree is attached to) inside one or multiple tasks. Namely, I have an Environment Query System that I would like to use in my RunEnvironmentQuery task. What is the best way of doing it?
My immediate assumption would be that there's some way to get components on the entity the BT is attached to, but I can't find how to do it. gameObject seems to be null all the time.
I am writing a new task for my behavior tree, and I would like to use a generalized system (currently it's just a component on the gameobject the behavior tree is attached to) inside one or multiple tasks. Namely, I have an Environment Query System that I would like to use in my RunEnvironmentQuery task. What is the best way of doing it?
My immediate assumption would be that there's some way to get components on the entity the BT is attached to, but I can't find how to do it. gameObject seems to be null all the time.