Dear Friends at Epic,
I’m trying to implement my own splineactor, essentially, since I cannot find spline actor in UE4.
I got really far into it, but am stuck with a compiler error when trying to make a new instance of USplineComponent.
The Compiler cant find USplineComponent::GetPrivateStaticClass(wchar_t const *)
Here’s the relevant code:
NewConnection.SplineComponent = NewObject(VictoryPC);
Here’s the error:
1>Module.VictoryGame.cpp.obj : error LNK2019: unresolved external symbol "public: static class UClass * __cdecl USplineComponent::GetPrivateStaticClass(wchar_t const *)" (?GetPrivateStaticClass@USplineComponent@@SAPEAVUClass@@PEB_W@Z) referenced in function "public: void __cdecl AVictoryPath::Spline_AddConnectionTo(class AVictoryPath *)" (?Spline_AddConnectionTo@AVictoryPath@@QEAAXPEAV1@@Z)
1>E:\RocketVictory\VictoryGame\Binaries\Win64\RocketEditor-VictoryGame.dll : fatal error LNK1120: 1 unresolved externals
I tried to do a work around with the PCIP
AVictoryPath::AVictoryPath(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
Spline1 = PCIP.CreateDefaultSubobject < USplineComponent > (this, TEXT("Spline1"));
}
but got the same error
Is this something I just have to wait for?
Rama