InitializeFromAsset is not called on instanced behavior tree nodes in subtree


We have an instanced decorator (bCreateNodeInstance) which is used in a sub tree activated through the RunBehaviour Task. This decorator uses blackboard keys and therefore implements InitializeFromAsset to resolve the selected keys. InitializeFromAsset is called on the ‘template node’, however it is not called on the actual instance created through StaticDuplicateObject, nor are the resolved key values automagically copied in this step. As a consequence once I need the keys in my instanced node they have not been resolved yet. Am I doing something wrong or is this a bug? And how do I solve this?

Best regards,

Sounds like a bug. Please modify UBTNode::InitializeInSubtree function to call


on newly created object, right after NodeInstance->InitializeNode() .