I am trying to write a simple function that starts the record of the Sequence recorder.
This exists, in the Editor code, here:
C:\Program Files\Epic Games\4.12\Engine\Source\Editor\SequenceRecorder\Private\SequenceRecorderBlueprintLibrary.cpp
The function is:
#include "SequenceRecorderPrivatePCH.h"
#include "SequenceRecorderBlueprintLibrary.h"
#include "SequenceRecorder.h"
void USequenceRecorderBlueprintLibrary::StartRecordingSequence(const TArray<AActor*>& ActorsToRecord)
{
FSequenceRecorder::Get().ClearQueuedRecordings();
for(AActor* Actor : ActorsToRecord)
{
FSequenceRecorder::Get().AddNewQueuedRecording(Actor);
}
FSequenceRecorder::Get().StartRecording();
}
So, in my code, i have:
include "Editor/SequenceRecorder/Private/SequenceRecorder.h"
void UrecordTools::StartRecordz(AActor* recordtarget)
{
TArray<AActor*> ActorsToRecord;
ActorsToRecord.Add(recordtarget);
FSequenceRecorder::Get().ClearQueuedRecordings();
for (AActor* Actor : ActorsToRecord)
{
FSequenceRecorder::Get().AddNewQueuedRecording(Actor);
}
FSequenceRecorder::Get().StartRecording();
}
This will not compile, giving an error in: SequenceRecorder.h
Cannot open include file: 'MovieSceneAnimationSectionRecorder.h': No such file or directory
Is this because it is a private header and I am including it in another class? How can I get around this? (I have included every module I can think of in my Build.cs, and added the path to the headers )