# Why enum, declared in c++ does not accessible to choose if BlackBoard?

**URL:** <https://forums.unrealengine.com/t/why-enum-declared-in-c-does-not-accessible-to-choose-if-blackboard/45884>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [October 27, 2015, 4:23pm UTC](https://forums.unrealengine.com/t/why-enum-declared-in-c-does-not-accessible-to-choose-if-blackboard/45884 "2015-10-27T16:23:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sashka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sashka](https://forums.unrealengine.com/u/Sashka)\
**Post date:** [October 27, 2015, 4:23pm UTC](https://forums.unrealengine.com/t/why-enum-declared-in-c-does-not-accessible-to-choose-if-blackboard/45884/1 "2015-10-27T16:23:24Z")

</div>

I’ve declared my enum in MyAiController.h:

```auto

UENUM(BlueprintType)
enum class EBotState : uint8
{
    BS_IDLE = 0 UMETA(DisplayName = "BS_Idle"),
    BS_PURSUE UMETA(DisplayName = "BS_Pursue"),
    BS_ATACK UMETA(DisplayName = "BS_Atack")
};

```

But this enum type is inaccessible to choose in “Key Type” / “Enum Type” field dropdown menu of BlackBoard in the UnrealEditor (Here:

 ![Enum.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/5/935088b64280054158cc741b5726e3a54cb1691c.png))

---

<div class="post-metadata">

**Author:** ![Sashka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sashka](https://forums.unrealengine.com/u/Sashka)\
**Post date:** [October 27, 2015, 4:43pm UTC](https://forums.unrealengine.com/t/why-enum-declared-in-c-does-not-accessible-to-choose-if-blackboard/45884/2 "2015-10-27T16:43:17Z")

</div>

Looks like only enums declared in UEditor are available here.  
But I want to be able to change state in c++ but observe its value in BlackBoard decorators.

---

<div class="post-metadata">

**Author:** ![Pumpy\_Bird](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pumpy\_Bird](https://forums.unrealengine.com/u/Pumpy_Bird)\
**Post date:** [October 27, 2015, 5:47pm UTC](https://forums.unrealengine.com/t/why-enum-declared-in-c-does-not-accessible-to-choose-if-blackboard/45884/3 "2015-10-27T17:47:30Z")

</div>

Maybe the = 0 is somehow fudging it up? Try it also without any extra metadata to get the simplest possible form. It works for me, and I also generally restart the editor after enum changes too.

Also make sure you are on the latest release version of the engine in general.

---

<div class="post-metadata">

**Author:** ![Mewbits](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mewbits/32/1194714_2.png) [@Mewbits](https://forums.unrealengine.com/u/Mewbits)\
**Post date:** [November 9, 2019, 12:12am UTC](https://forums.unrealengine.com/t/why-enum-declared-in-c-does-not-accessible-to-choose-if-blackboard/45884/4 "2019-11-09T00:12:05Z")

</div>

I’m having the exact same issue. I declared the Enum the same way (except without the =0 part) and restarted the engine after compiling the code. It’s located in a header file that is listed in my project header file so that it’s accessible anywhere in the project. I can create variables and reference it anywhere. Except I can’t set it as the Enum type in Blackboard.

Did you ever find a way to fix this issue? I’m in UE 4.23

Edit: Found the solution:

 ![enumcpp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/f/efb6722ad5ff8a4d28cca2899727f3a5d2dc3553.jpeg)

---

<div class="post-metadata">

**Author:** ![Koulounil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Koulounil](https://forums.unrealengine.com/u/Koulounil)\
**Post date:** [April 20, 2021, 5:16pm UTC](https://forums.unrealengine.com/t/why-enum-declared-in-c-does-not-accessible-to-choose-if-blackboard/45884/5 "2021-04-20T17:16:16Z")

</div>

Same here. did you manage to solve this issue ?

---

<div class="post-metadata">

**Author:** ![Mewbits](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mewbits/32/1194714_2.png) [@Mewbits](https://forums.unrealengine.com/u/Mewbits)\
**Post date:** [September 5, 2024, 3:38am UTC](https://forums.unrealengine.com/t/why-enum-declared-in-c-does-not-accessible-to-choose-if-blackboard/45884/6 "2024-09-05T03:38:30Z")

</div>

See my edit above with the solution. The Enum Name should be the c++ name exactly starting with E. So for the OP’s issue it should be EBotState instead of NpcState.
