I want to create my own Control Rig in C++. However, I’m unable to build the project. I’m getting the following error:
unresolved external symbol "__declspec(dllimport) public: __cdecl UControlRig::UControlRig(void)" (__imp_??0UControlRig@@QEAA@XZ) referenced in function "void __cdecl InternalConstructor<class UCustomControlRig>(class FObjectInitializer const &)" (??$InternalConstructor@VUCustomControlRig@@@@YAXAEBVFObjectInitializer@@@Z)
I’ve added the modules to my project:
PublicDependencyModuleNames.AddRange(new string[] {
...
"ControlRig",
"RigVM"
});
My ih__CustomControlRig.h
#pragma once
#include "ControlRig.h"
#include "ih__CustomControlRig.generated.h"
UCLASS(BlueprintType)
class UCustomControlRig : public UControlRig
{
GENERATED_BODY()
};