# Can I use the C++ Enum in AI BT Blackboard?

**URL:** <https://forums.unrealengine.com/t/can-i-use-the-c-enum-in-ai-bt-blackboard/339672>\
**Category:** AI\
**Tags:** Behavior-Tree, UEnum, blackboard, behavior-tree-task, unreal-engine, CPP, question\
**Created:** [November 25, 2015, 4:13pm UTC](https://forums.unrealengine.com/t/can-i-use-the-c-enum-in-ai-bt-blackboard/339672 "2015-11-25T16:13:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamokshaelzaki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hamokshaelzaki](https://forums.unrealengine.com/u/hamokshaelzaki)\
**Post date:** [November 25, 2015, 4:13pm UTC](https://forums.unrealengine.com/t/can-i-use-the-c-enum-in-ai-bt-blackboard/339672/1 "2015-11-25T16:13:51Z")

</div>

I have an ENUM definded in C++'s code  
and it’s usable in Blueprints

```
UENUM(BlueprintType)
enum class NPCState : uint8{
	Patrolling UMETA(DisplayName = "Patrolling"),
	Alerted UMETA(DisplayName = "Alerted"),
};

```

I am able to use it in blueprints with no problem, however I cannot use it as a Blackboard enum value, is there any way to do this ?

---

<div class="post-metadata">

**Author:** ![Alderbit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alderbit](https://forums.unrealengine.com/u/Alderbit)\
**Post date:** [November 25, 2015, 6:00pm UTC](https://forums.unrealengine.com/t/can-i-use-the-c-enum-in-ai-bt-blackboard/339672/2 "2015-11-25T18:00:59Z")

</div>

You can use it by typing its name into the **Enum Name** text box of the blackboard details panel and pressing enter.

![68147-enumtype.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/e/3cebbcd3e6415273050ecce014ecef8a64c1b6d4.jpeg)

---

<div class="post-metadata">

**Author:** ![hamokshaelzaki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hamokshaelzaki](https://forums.unrealengine.com/u/hamokshaelzaki)\
**Post date:** [November 25, 2015, 9:09pm UTC](https://forums.unrealengine.com/t/can-i-use-the-c-enum-in-ai-bt-blackboard/339672/3 "2015-11-25T21:09:42Z")

</div>

Lots of Thanks !! 😃

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8977fd73](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8977fd73](https://forums.unrealengine.com/u/anonymous_user_8977fd73)\
**Post date:** [March 13, 2017, 2:38pm UTC](https://forums.unrealengine.com/t/can-i-use-the-c-enum-in-ai-bt-blackboard/339672/4 "2017-03-13T14:38:12Z")

</div>

Why isn’t that documented anywhere? I’ve been looking for that for 3 hours. Thank you!

---

<div class="post-metadata">

**Author:** ![MsNancyZhang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MsNancyZhang](https://forums.unrealengine.com/u/MsNancyZhang)\
**Post date:** [September 7, 2017, 1:42am UTC](https://forums.unrealengine.com/t/can-i-use-the-c-enum-in-ai-bt-blackboard/339672/5 "2017-09-07T01:42:49Z")

</div>

Many thanks, this is helpful!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_49a519741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_49a519741](https://forums.unrealengine.com/u/anonymous_user_49a519741)\
**Post date:** [December 18, 2017, 2:34am UTC](https://forums.unrealengine.com/t/can-i-use-the-c-enum-in-ai-bt-blackboard/339672/6 "2017-12-18T02:34:16Z")

</div>

It shows up in every other list. Silly of us to expect it in that one. Sometimes… I mean…  
Thanks for the info.
