RealDocs

UBTTaskNode::Services

property AIModule Since 4.0
#include "BehaviorTree/BTTaskNode.h"
Access: public Specifiers: UPROPERTY

Description

The list of service nodes attached directly to this task in the behavior tree editor. Services in this array tick alongside the task while it is active.

Caveats & Gotchas

  • Not exposed to Blueprint (no BlueprintReadOnly/ReadWrite) — it's populated by the behavior tree asset/editor, not runtime game code.
  • These are task-attached services, distinct from services attached to composite nodes elsewhere in the tree.
  • Mutating this array at runtime is not a supported workflow; treat it as read-only outside of the behavior tree editor tooling.

Signature

TArray<TObjectPtr<UBTService>> Services;

Example

Inspect attached services C++
for (const TObjectPtr<UBTService>& Service : TaskNode->Services)
{
	// Inspect each service attached to this task node
}

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.