Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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

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

 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 ?

Product Version: UE 4.9
more ▼

asked Nov 25 '15 at 04:13 PM in C++ Programming

avatar image

151 7 11 61

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

alt text

enumtype.jpg (49.2 kB)
more ▼

answered Nov 25 '15 at 06:00 PM

avatar image

871 36 14 60

avatar image hamokshaelzaki Nov 25 '15 at 09:09 PM

Lots of Thanks !! :D

avatar image Krzysiek_TATE Mar 13 '17 at 02:38 PM

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

avatar image Jiao Sep 07 '17 at 01:42 AM

Many thanks, this is helpful!

avatar image Jin_VE Dec 18 '17 at 02:34 AM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question