Description

Context

In Behavior Trees, BT Services can be added to nodes. Those services can have configurable FBlackboardKeySelectors. BlackboardKeys are variables on a blackboard that the behavior tree can read/write from. Selectors allow the developer to reference a specific blackboard key.

Problem
FBlackboardKeySelector filters aren't applied when recompiling blueprint if a behavior tree asset containing the blueprint added as a service is closed, or if the blueprint is reparented.

Steps to Reproduce

With repro project (recommended):
1.) Download and open repro project provided by licensee. 
2.) Open "NewBehaviorTree"; Content Drawer > Content > NewBehaviorTree
3.) Click on each Test Service and in the Details panel click on the "Detection Radius" dropdown menu

Without repro project:

1.) Create a native UBTService subclass 'UBTServiceTestBase' with a FBlackboardKeySelector editable property. In the constructor, call AddFloatFilter on it to constrain its AllowedTypes to floats.
2.) Create a BehaviorTree asset. Add the 'UBTServiceTestBase' service to a node.

Observe:

  • Test Service from BP_ServiceTest only has the Float key in the dropdown menu.
  • Test Service from BTService_Broken (this is the reparented blueprint) has all the keys in the dropdown menu.{}

Expected:

  • Both should only have the Float key in the dropdown menu as the filter is applied in the constructor

4.) Open "BP_ServiceTest"; Content Drawer > Content > BP_ServiceTest. Keep "NewBehaviorTree" tab open.
5.) Save and Compile BP_ServiceTest
6.) Go back into "NewBehaviorTree" and observe "Detection Radius" dropdown menu in Test Service from BP_ServiceTest still correctly applies filter
7.) Repeat steps 4-6 but close the "NewBehaviorTree" tab

Observe:

  • "Detection Radius" dropdown menu in Test Service from BP_ServiceTest no longer has the filter applied

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-333204 in the post.

0
Login to Vote

Unresolved
ComponentUE - AI - BehaviorTree
Affects Versions5.6
CreatedSep 24, 2025
UpdatedOct 17, 2025
View Jira Issue