TTuple and TPair must be UStruct,

Hi Dears,

I want to return TTuple or TPair from my function, when I compile have error as follows

Unrecognized type ‘TTuple’ - type must be a UCLASS, USTRUCT or UENUM

How may I use this?

Did you find any solution to this?

Use:

#include “Templates/Tuple.h”

in .cpp and .h

I have solved this issue by shifting integer in bits as design. Maybe below answer could also help you.