class

BTActorResolver

Bridges the ECS half of the tree back to the actor half. Data-driven trees tick with owner == nullptr, so nodes that need an AActor (Visual Script tasks, melee targeting, perception hand-off) recover one from (world, entity) instead of assuming an AIController owner.

Module
AINavigation
Header
#include "AINavigation/BehaviorTree.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
AActor*ResolveActor backing entity in the actor world paired with world, or nullptr when the entity has no actor or the worlds don't match.
AActor*ResolveOwnerctx.owner when it is already an actor, else Resolve(ctx.world, ctx.entity).
boolResolveAgentThe ECS entity the tree drives: (ctx.world, ctx.entity) for a data-driven tree, the possessed pawn's backing entity for an AIController-owned one.
boolAgentTransformWorld position and forward of that agent.

Function details

Resolve

C++
static AActor* Resolve(World* world, uint64_t entity)

Actor backing entity in the actor world paired with world, or nullptr when the entity has no actor or the worlds don't match.

ResolveOwner

C++
static AActor* ResolveOwner(const BTContext& ctx)

ctx.owner when it is already an actor, else Resolve(ctx.world, ctx.entity).

ResolveAgent

C++
static bool ResolveAgent(const BTContext& ctx, World*& outWorld, uint64_t& outEntity)

The ECS entity the tree drives: (ctx.world, ctx.entity) for a data-driven tree, the possessed pawn's backing entity for an AIController-owned one.

AgentTransform

C++
static bool AgentTransform(const BTContext& ctx, Vec3& outPosition, Vec3& outForward)

World position and forward of that agent.

Generated from AINavigation/BehaviorTree.h via ainavigation.json · Oct 27, 2026Version 1.0.0