I have a line in my code:
Controllers* = GetWorld()->SpawnActor<ASixenseController>(ASixenseController::StaticClass(), GetActorLocation(), GetActorRotation(), SpawnInfo);
Which throws the error error " LNK2019: unresolved external symbol “private: static class UClass * __cdecl ASixenseController::GetPrivateStaticClass(wchar_t const *)” (?GetPrivateStaticClass@ASixenseController@@CAPEAVUClass@@PEB_W@Z) referenced in function “class ASixenseController * __cdecl CastChecked<class ASixenseController>(class UObject *,enum ECastCheckedType::Type)” (??$CastChecked@VASixenseController@@@@YAPEAVASixenseController@@PEAVUObject@@W4Type@ECastCheckedType@@@Z) "
My tests determine that it is specifically the StaticClass() that does this. So, my question is why? Is there a header I should include other than the SixenseController.h ? Is there a module I should add to the dependencies? I’m really racking my brain on this one as it is unlike previous unresolved external errors I have encountered, which were simply declaring something and forgetting to define it.