Enum Error!

What this Error Means & How To Solve This…

and here is Code File…

You need to specify the underlying type of the enum as unit8

// this specifies that the underlying type is uint8
enum class Name : uint8 

Ohh My bad …
Thanks @DanM

enum PlayerState:uint8{

};

is it wrong syntax

Well you’re now making an unscoped enum. For what you had in the OP

UENUM(BlueprintType)
enum class EBCMPlayState : uint8
{
    EPlaying,
    EGameOver,
    EUnknown
};

(Though I suggest you remove the E prefix from the enumerators (EPlaying etc.).)

Thanks
Much Appreciated for Suggestion

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms