enter code here
I made a UStruct and it made some error, which tell me that ‘there’s no proper constructor.’
So I add another constructor empty in it. Then it works well, but I don know why this made problem and why this can be solved in this way. Can anybody teach me?
struct FCircum
{
GENERATED_BODY()
FCircum() {} ///// Without this Constructor, it makes compiling error
FCircum(uint16 distance, FBlackAndWhite blackAndWhite)
{
Distance = distance;
BlackAndWhite = blackAndWhite;
}
UPROPERTY()
uint16 Distance;
UPROPERTY()
FBlackAndWhite BlackAndWhite;
};
FBlackAndWhite is struct made above.