Announcement

Collapse
No announcement yet.

Battery Collector Tutorial problems : Invalid BlueprintType enum base

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Battery Collector Tutorial problems : Invalid BlueprintType enum base

    I am following the battery collector tutorial series in order to learn how to use unreal engine, and since I have no prior experience I'm having trouble making it compatible with the latest version of unreal engine. In Part 18, we set up a UENUM to keep track of the game state, with the following code :

    BatteryCollectorGameMode.h :
    Code:
    //enum to store the current state of gameplay
    UENUM(BlueprintType)
    enum class EBatteryPlayState
    {
        EPlaying,
        EGameOver,
        EWon,
        EUnknown
    };
    Compiling fails with the following error :
    Code:
    Error : Invalid BlueprintType enum base - currently only uint8 supported
    How can I fix this ? I have no idea what a UEnum even is and the documentation seems to assume I should, therefore I can't fix the problem myself.
    Thank you for your help

    #2
    Code:
    //enum to store the current state of gameplay
    UENUM(BlueprintType)
    enum class EBatteryPlayState : uint8
    {
        EPlaying,
        EGameOver,
        EWon,
        EUnknown
    };
    Able Ability System - A high performance, robust ability system for UE4. Now Available!

    Comment

    Working...
    X