Reply To: Feedback why ConditionTask OnDrawGizmosSelected didn't work

NodeCanvas Forums General Discussion Feedback why ConditionTask OnDrawGizmosSelected didn't work Reply To: Feedback why ConditionTask OnDrawGizmosSelected didn't work

#11131
Gavalakis
Keymaster

Hello,

The only reason that the gizmos of that specific task (as well as most of them) will not show, is when the ‘agent’ is null, since the agent is required to view the gizmos at the correct world coordinates.

The agent can be null, if for example you have set the agent to read from a blackboard variable which is null. In the image bellow, “myGameObject” variable on the blackboard is not yet set (null) and as a result in this case, the gizmos will not be shown. Otherwise the gizmos should show as expected.
NullAgentVariable

Let me know if that’s the case.
Thanks.

Join us on Discord: https://discord.gg/97q2Rjh

Attachments:
  1. NullAgentVariable.png