UHT/UBT incorrectly uses TEnumAsByte<> in Generated.CPP
I've created an enum and a BlueprintNativeEvent that takes this enum as an argument. Unfortunately when I try to compile the game, compilation fails because the Game.Generated.Cpp file swaps out the argument for a TEnumAsByte instead of a regular enum.
If I manually edit the Generated.CPP file, I can compile - but this is obviously not a good workaround. I don't want to change my enum to the old ::Type style, since that'll be a breaking change for other parts of the code.
This is the code I have written: -- .H
And THIS is what the GESGame.Generated.CPP file generates for that UFUNCTION, which as you can see is incorrect:
This stops my game from compiling, but i can change the Generated file and it will compile and run fine.
asked Feb 24 '16 at 03:00 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here