UMovieSceneSection* UMovieScene3DAttachTrack::CreateNewSection() { UMovieScene3DAttachSection* NewSection = NewObject<UMovieScene3DAttachSection>(this); NewSection->SetFlags(RF_Transactional); ConstraintSections.Add(NewSection); return NewSection; }
void UMovieScene3DAttachTrack::AddConstraint(float KeyTime, float ConstraintEndTime, const FName SocketName, const FName ComponentName, const FGuid& ConstraintId) { // add the section UMovieScene3DAttachSection* NewSection = NewObject<UMovieScene3DAttachSection>(this); NewSection->SetFlags(RF_Transactional); NewSection->AddAttach(KeyTime, ConstraintEndTime, ConstraintId); NewSection->InitialPlacement( ConstraintSections, KeyTime, ConstraintEndTime, SupportsMultipleRows() ); NewSection->AttachSocketName = SocketName; NewSection->AttachComponentName = ComponentName; ConstraintSections.Add(NewSection); }