RealDocs

UBehaviorTreeComponent::RegisterParallelTask

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

Description

Adds a task to the component's internal list of active parallel-running tasks, used for tracking tasks executing under a parallel composite node.

Caveats & Gotchas

  • Called internally by the parallel task execution machinery — custom task code doesn't normally need to call this directly.
  • Must be paired with a corresponding UnregisterParallelTask or the task keeps being tracked as active after it finishes.

Signature

void RegisterParallelTask(const UBTTaskNode* TaskNode);

Parameters

Name Type Description Default
TaskNode const UBTTaskNode* Task to add to the list of currently active parallel tasks.

Return Type

void

Example

Internal registration during parallel execution C++
// Called by the tree when a parallel composite starts its background task
OwnerComp.RegisterParallelTask(ParallelTaskNode);

Tags

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.