RealDocs

UBehaviorTreeComponent::DescribeActiveTasks

function AIModule Since 4.0
#include "BehaviorTree/BehaviorTreeComponent.h"
Access: public Specifiers: virtualconst

Description

Returns a string listing the names of all currently active task nodes, including any running in parallel, across the whole instance stack.

Caveats & Gotchas

  • Lists parallel tasks too, so this can return more than one name even for a tree with a single active leaf task.
  • Used internally by GetDebugInfoString and the gameplay debugger's AI category — call it directly only for debug UI, not gameplay logic.

Signature

virtual FString DescribeActiveTasks() const

Return Type

FString

Example

Showing active tasks in an on-screen debug message C++
GEngine->AddOnScreenDebugMessage(-1, 0.f, FColor::Green, BTComponent->DescribeActiveTasks());

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.