Hello!
I believe my issues may be with improperly referencing and including this particular Plugin/Module to my path. I am just getting started in C++ so im unfamiliar with how to properly configure this in the project settings, especially since it is from a Plugin…
Working with the CineCameraSceneCapture plugin in 5.3. Im trying to create a simple actor class that includes the UCineCaptureComponent2D from the above plugin. Here is an example…
#include "TestActor.h"
#include "C:\Program Files\Epic Games\UE_5.3\Engine\Plugins\Experimental\CineCameraSceneCapture\Source\CineCameraSceneCapture\Public\CineCameraSceneCaptureComponent.h"
// Sets default values
ATestActor::ATestActor()
{
PrimaryActorTick.bCanEverTick = true;
// Create the cine capture component
UCineCaptureComponent2D* MyCineCaptureComponent = CreateDefaultSubobject<UCineCaptureComponent2D>(TEXT("MyCineCaptureComponent"));
}
Two problems immediately
- I have to include the full path to the header file or else my component are unidentified. I added the following module to my uproject
{
"Name": "CineCameraSceneCapture",
"Type": "Runtime",
"LoadingPhase": "Default"
}
And the following to my Build.cs
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" , "CineCameraSceneCapture" });
PrivateDependencyModuleNames.AddRange(new string[] { "CineCameraSceneCapture" });
- I get the following error when building…
TestActor.cpp.obj : error LNK2019: unresolved external symbol “private: static class UClass * __cdecl UCineCaptureComponent2D::GetPrivateStaticClass(void)” (?GetPrivateStaticClass@UCineCaptureComponent2D@@CAPEAVUClass@@XZ) referenced in function “class UCineCaptureComponent2D * __cdecl NewObject(class UObject *,class FName,enum EObjectFlags,class UObject *,bool,struct FObjectInstancingGraph *)” (??$NewObject@VUCineCaptureComponent2D@@@@YAPEAVUCineCaptureComponent2D@@PEAVUObject@@VFName@@W4EObjectFlags@@0_NPEAUFObjectInstancingGraph@@@Z)
D:\UnrealEngine\MyProject3\Binaries\Win64\UnrealEditor-MyProject3.patch_4.exe : fatal error LNK1120: 1 unresolved externals
Any help is much appreciate, Thanks!