# Behavior tree decorator not using correct enum names

**URL:** <https://forums.unrealengine.com/t/behavior-tree-decorator-not-using-correct-enum-names/291553>\
**Category:** AI\
**Tags:** Behavior-Tree, enumeration, decorator, unreal-engine, question\
**Created:** [August 20, 2014, 9:42pm UTC](https://forums.unrealengine.com/t/behavior-tree-decorator-not-using-correct-enum-names/291553 "2014-08-20T21:42:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmyH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AmyH](https://forums.unrealengine.com/u/AmyH)\
**Post date:** [August 20, 2014, 9:42pm UTC](https://forums.unrealengine.com/t/behavior-tree-decorator-not-using-correct-enum-names/291553/1 "2014-08-20T21:42:44Z")

</div>

When I add a blackboard decorator and set it to check if an enumerator is equal to a value - the correct name is shown in the dropdown list of key values but it does not display the name in the behavior tree, only the default name. e.g. “NewEnumerator5” instead of “patrol”

---

<div class="post-metadata">

**Author:** ![MieszkoZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MieszkoZ](https://forums.unrealengine.com/u/MieszkoZ)\
**Post date:** [August 21, 2014, 8:23am UTC](https://forums.unrealengine.com/t/behavior-tree-decorator-not-using-correct-enum-names/291553/2 "2014-08-21T08:23:08Z")

</div>

Just to narrow down the suspects group, is this the case even after restarting the editor? Which BT decorator is that?

–mieszko

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_39b040c8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_39b040c8](https://forums.unrealengine.com/u/anonymous_user_39b040c8)\
**Post date:** [August 21, 2014, 8:31am UTC](https://forums.unrealengine.com/t/behavior-tree-decorator-not-using-correct-enum-names/291553/3 "2014-08-21T08:31:43Z")

</div>

![13331-ue4btstate.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/7/f379d7560653eae8b65eb6bbb0b288908e443e1c.jpeg)

I think the OP is talking about this which is always the case no matter if it was freshly added or after editor restart. But it is just a visual issue on the blackboard decorator in the graph itself.

---

<div class="post-metadata">

**Author:** ![MieszkoZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MieszkoZ](https://forums.unrealengine.com/u/MieszkoZ)\
**Post date:** [August 21, 2014, 8:54am UTC](https://forums.unrealengine.com/t/behavior-tree-decorator-not-using-correct-enum-names/291553/4 "2014-08-21T08:54:08Z")

</div>

Oh ok. I had it filed and will get resolved in not too long 🙂

---

<div class="post-metadata">

**Author:** ![MieszkoZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MieszkoZ](https://forums.unrealengine.com/u/MieszkoZ)\
**Post date:** [November 24, 2014, 1:58am UTC](https://forums.unrealengine.com/t/behavior-tree-decorator-not-using-correct-enum-names/291553/5 "2014-11-24T01:58:36Z")

</div>

Fixed in CL#2368331. It very simple fix so if you want to apply it manually to your own sources just let me know and I’ll instruct you what to do.
