How to do it...

  1. Go to the header file that will use the UENUM() you are specifying, or create a
    file called EnumName.h.
  2. Use the following code:
UENUM() 
enum Status 
{ 
  Stopped     UMETA(DisplayName = "Stopped"), 
  Moving      UMETA(DisplayName = "Moving"), 
  Attacking   UMETA(DisplayName = "Attacking"), 
}; 
  1. Use your UENUM() in a UCLASS(), as follows:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = 
Status) TEnumAsByte<Status> status;