Hi there,
My goal is to use an array of a custom enum (types) as ouput for an interface function.
However, when I try to do this the engine gives me the following message:
Error Message:
BlueprintEditorCompileResults:Error: Error Default value ‘’ for Types is invalid: ‘’’ is not a valid enumerant of ‘’’
My enum is coded in c++ like this:
UENUM(BlueprintType)
enum MyType
{
TP_Float UMETA(DisplayName = “Float”),
TP_Int UMETA(DisplayName = “Int”),
TP_String UMETA(DisplayName = “String”),
TP_Bool UMETA(DisplayName = “Bool”),
};
The setupt of the interface function:
Engine
Im working in UE 4.2.1
Trial and error
I did also test it with an enum which I created in the editor (content browser → misc → enumeration), got the same result.