UMovieSceneTrackRecorder::CreateTrack

CreateTrack is called during PreRecording and should perform any clean up of old data, allocate new tracks if needed and create sections that start at a time of zero.

Windows
MacOS
Linux

References

Module

TakeTrackRecorders

Header

/Engine/Plugins/VirtualProduction/Takes/Source/TakeTrackRecorders/Public/TrackRecorders/MovieSceneTrackRecorder.h

Include

#include "TrackRecorders/MovieSceneTrackRecorder.h"

Syntax

void CreateTrack
(
    IMovieSceneTrackRecorderHost * InRecordingHost,
    UObject * InObjectToRecord,
    UMovieScene * InMovieScene,
    UMovieSceneTrackRecorderSettings * InSettingsObject,
    const FGuid & InObjectGuid
)

Remarks

CreateTrack is called during PreRecording and should perform any clean up of old data, allocate new tracks if needed and create sections that start at a time of zero. The call to PreRecording can take a significant amount of time when many sources are being recorded (due to the possibly large number of allocations) so the creation time is not passed in. Instead Track recorders should implement SetSectionStartTimecodeImpl which will be called when StartRecording is called. StartRecording is called one after another and should be a non-blocking operation which will ensure all sources will start on the most up to date and in-sync timecode data.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss