Return an UENUM from a function in C++

So I have a UENUM:

    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.

Like the compiler says, EOperationMode does not exist. You declared EOperatingMode. Notice the difference in spelling.

Thanks Gmpreussner. I feel a bit stupid as I looked over this for a long time before posting and could have sworn I copied and pasted to make sure I didn’t have a typo. I thought it was an issue with whatever UE4 is doing behind the scenes on UENUMS that I just didn’t understand. Thanks again!