# Behavior Tree Decorator node property is not working

**URL:** <https://forums.unrealengine.com/t/behavior-tree-decorator-node-property-is-not-working/360389>\
**Category:** AI\
**Tags:** Behavior-Tree, decorator, unreal-engine, bug-report, editor, question\
**Created:** [June 11, 2016, 2:59am UTC](https://forums.unrealengine.com/t/behavior-tree-decorator-node-property-is-not-working/360389 "2016-06-11T02:59:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a427f8df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a427f8df](https://forums.unrealengine.com/u/anonymous_user_a427f8df)\
**Post date:** [June 11, 2016, 2:59am UTC](https://forums.unrealengine.com/t/behavior-tree-decorator-node-property-is-not-working/360389/1 "2016-06-11T02:59:37Z")

</div>

Hello.  
In UE 4.12, the decorator node property is not working.

 ![94199-bug1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/c/adc7742d31a4fdb311a25393018f9a4d14fa2848.png)

 ![94200-bug2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/f/dbf2fecb014dd5519fc2ab259b94334ebb0067ca.png)

I uploaded a sample project.[(download - 4.12.2 project)][3]

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a427f8df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a427f8df](https://forums.unrealengine.com/u/anonymous_user_a427f8df)\
**Post date:** [June 13, 2016, 7:08am UTC](https://forums.unrealengine.com/t/behavior-tree-decorator-node-property-is-not-working/360389/2 "2016-06-13T07:08:26Z")

</div>

Epic Games Korea gave an answer to my question.

```
void UBTNode::InitializeInSubtree(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory, int32& NextInstancedIndex, EBTMemoryInit::Type InitType) const
{
	if (bCreateNodeInstance)
	{
		// composite nodes can't be instanced!
		check(IsA(UBTCompositeNode::StaticClass()) == false);

		UBTNode* NodeInstance = OwnerComp.NodeInstances.IsValidIndex(NextInstancedIndex) ? OwnerComp.NodeInstances[NextInstancedIndex] : NULL;
		if (NodeInstance == NULL)
		{
			// new - fix
			NodeInstance = (UBTNode*)StaticDuplicateObject(this, &OwnerComp);
			// old
			// NodeInstance = NewObject<UBTNode>(&OwnerComp, GetClass(), NAME_None, RF_NoFlags, (UObject*)(this));
			NodeInstance->InitializeNode(GetParentNode(), GetExecutionIndex(), GetMemoryOffset(), GetTreeDepth());
			NodeInstance->bIsInstanced = true;

			OwnerComp.NodeInstances.Add(NodeInstance);
		}
		....
}

```

---

<div class="post-metadata">

**Author:** ![LimasseFive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limassefive/32/910458_2.png) [@LimasseFive](https://forums.unrealengine.com/u/LimasseFive)\
**Post date:** [June 14, 2016, 2:20pm UTC](https://forums.unrealengine.com/t/behavior-tree-decorator-node-property-is-not-working/360389/3 "2016-06-14T14:20:33Z")

</div>

And so what is the non-coder answer?

I have the same issue here, the “observer aborts” doesn’t abort anything except if it’s set in the decorator BP properties.  
Is that a bug? Anyway to fix it or do we have to wait for an hotfix?
