Behavior Tree data not showing in AI Debug

I am debugging my AI right now and I recently found out about the AI Debug menu. However, for some reason my Behavior Tree data just won’t show up. The AI Controller and Sensing component work fine. I have enabled BehaviorTree under Project Settings->GameplayDebug

233115-aidebug.jpg

Hey,

Have you called the ‘Run Behavior Tree’ node and assigned a BTAsset on the AI Controller?

Hi ,

yes the AI is properly running the behavior tree and using the ai controller for the senses.

Do you have anything in your project that might prevent it from showing? I was able to see the Behavior Tree debug in a clean 4.17 project.

233496-debug.png

Not that I am aware of. What could prevent it from showing?

If I were you I’d see if it appears in a clean 4.17 project when you enable AI Debugging. If it does, try tracking down the issue in your own project. Also in your own project does it not appear when debugging certain AI? Try making a new AI character with a Behavior Tree to see if it appears.

If none of that works attach a project where this is happening so I can take a look at it.

You need to initialize the variable BrainComponent from the AIController to your BT.

Thanks, that did it.

I created a new pawn blueprint, ai controller blueprint and behavior tree and it showed the behavior tree data just fine. Is there some UPROPERTY that I am missing in c++ to display the behavior tree in debugging?