I’m trying to use ConstructorHelpers::FObjectFinder in my constructor to get a UCurveFloat reference, but I’m getting lots of errors. Here is the code I’m using:
static ConstructorHelpers::FObjectFinder<UCurveFloat> CurveToMidPoint(TEXT("Game/Curves/CurveToMidPoint.uasset")); IntermediateCurveToMidPoint = CurveToMidPoint.Object;
Here are the errors Visual Studio is throwing:
'ConstructorHelpers': is not a class or namespace name syntax error: missing ';' before '<' missing type specifier - int assumed. Note C++ does not support default-int 'CurveToMidPoint': undeclared specifier left of '.Object' must have class/struct/union
Since these errors all disappear when I comment out these two lines, they are causing all of them.
What am I doing wrong?