These are the steps I followed to get a minimal version of this pipeline working.
I rebuilt the Plugin for UE-5.3, but could not get the Plugin to work properly (There were errors in the CameraCaptureManager_BP and I could not place it in the Editors).
Similarly to #35, I ended up porting the source files into a project (MyProject) and building everything in that project. Here are the notes I took along the way:
- Moved from
UnrealImageCapture/Plugin_UE5, the files CameraCaptureManager.cpp, CameraCaptureManager.h to MyProject/Source/MyProject/.
- Solve the linking issues by modifying
MyProject.Build.cs
public class MyProject : ModuleRules
{
public MyProject(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(new string[] {
"Core",
"InputCore",
"ImageWrapper",
"RenderCore",
"Renderer",
"RHI",
"CoreUObject",
"Engine",
"Slate",
"SlateCore",
});
}
- You should be able to compile the C++ code now using VSCode's build task.
- Check that things are working by looking for
CameraCaptureManager in the Editor's content manager under C++ Classes.
- Drag and drop
CameraCaptureManager into the viewport.
- Place a
SceneCapture2D actor (from the Place Actor Panel)
- Set the
CaptureComponent of CameraCaptureManager to point to the SceneCapture2D camera.
- Open the Level's Blueprint and connect a
Capture Non Blocking function to a EnhancedInputComponent that triggers when the desired key-binding is pressed.
- Play the map, and press the selected capture key-binding.
These are the steps I followed to get a minimal version of this pipeline working.
I rebuilt the Plugin for UE-5.3, but could not get the Plugin to work properly (There were errors in the
CameraCaptureManager_BPand I could not place it in the Editors).Similarly to #35, I ended up porting the source files into a project (
MyProject) and building everything in that project. Here are the notes I took along the way:UnrealImageCapture/Plugin_UE5, the filesCameraCaptureManager.cpp,CameraCaptureManager.htoMyProject/Source/MyProject/.MyProject.Build.csCameraCaptureManagerin the Editor's content manager underC++ Classes.CameraCaptureManagerinto the viewport.SceneCapture2Dactor (from the Place Actor Panel)CaptureComponentofCameraCaptureManagerto point to theSceneCapture2Dcamera.Capture Non Blockingfunction to aEnhancedInputComponentthat triggers when the desired key-binding is pressed.