It’s not very clear in the UI, but the way to do this is:
- Setup your enum (as you have done)
- Within your blackboard, add a new ‘Enum’ variable type
- Expand the Key Type
- You won’t be able to fill in the ‘Enum Type’ from the selector. but you can enter a custome name in the ‘Enum Name’ field. Enter you’re enum name here (e.g. EUnitMainState)
- Once you typed the name, be sure to hit enter
- Check the ‘Is Enum Name Valid’ tickbox. It should now be ticked. If not then it’s because you’ve entered the name incorrectly or you may need to re-compile the project. You should also now see the Enum Type field is filled in too.
Here’s a screenshot of the final result