So I have a UENUM:
UENUM(BlueprintType)
enum class EOperatingMode : uint8
{
NON_VR_MODE UMETA(DisplayName = "Non_VR_Mode"),
VR_MODE_STEAM UMETA(DisplayName = "VR_Mode_Steam"),
VR_MODE_OCULUS UMETA(DisplayName = "VR_Mode_Oculus")
};
and in my class I have a UPROPERTY for the Enum
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Enum)
EOperatingMode something;
and I have accessors for the property:
UFUNCTION(BlueprintCallable, Category = "VR")
void SetMode(EOperatingMode operatingMode);
UFUNCTION(BlueprintCallable, Category = "VR")
EOperationMode GetMode();
The SetMode works fine but on compilation the GetMode function causes the compiler to complain: “Unrecognized type EOperationMode” any ideas what I’m doing wrong? I see some references to using the TEnumAsByte but I started using the class UENUMs because I thought that was deprecated.