October 2016
Intermediate to advanced
452 pages
9h 47m
English
C++ enum are very useful in typical C++ code. UE4 has a custom type of enumeration called UENUM(), which allows you to create an enum that will show up in a drop-down menu inside a Blueprint that you are editing.
UENUM() you are specifying, or create a file EnumName.h.UENUM()
enum Status
{
Stopped UMETA(DisplayName = "Stopped"),
Moving UMETA(DisplayName = "Moving"),
Attacking UMETA(DisplayName = "Attacking"),
};UENUM() in a UCLASS() as follows:UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Status)
TEnumAsByte<Status> status;
UENUM() show up nicely in the code editor as drop-down menus in the Blueprints editor from which ...