I created a task that extends ActionTask and added an override of the method OnDrawGizmosSelected().
In the Task class (where the virtual OnDrawGizmosSelected() is declared), the comment above the method says “Draw gizmos when the element containing the task is selected”.
However my overridden OnDrawGizmosSelected() is never called even when my agent is selected (I’m sure of it because I tried to breakpoint into this method).
Ok it’s weird but it seems sometimes it doesn’t work and sometimes it does.
I think it is related to the fact my graph is bound to a prefab and when I look an instance the BT doesn’t like it very much (I have other “refresh” issues, I generally “fix” them by checking/unchecking the “Pre Initialize Sub Graphs” checkbox).