I got stuck at something when i was trying to program an inventory system, was trying to assign a slot to all of the items so they can be equipped differently (primary weapons, armors etc) so i added this in my item code
error : In Item: Unrecognized type 'EItemEquipSlot'
meaning that it’s not possible to use ENums directly with UPROPERTY, is there any way to create a sub class for ENums to be used with UPROPERTY or what others ways can i try to do the same thing?
Assuming you’re okay using C++11, you don’t need the namespace workaround and can do like this:
UENUM(BlueprintType)
enum class EHeadLookCameraMode: uint8 {
...
};
The uint8 part is important, as is the BlueprintType specifier if you want to access the property within a blueprint.
Maybe Michael can confirm, but I think assuming you do it this way, TEnumAsByte is no longer required.