Files
UnrealEngine/Engine/Source/Runtime/MovieScene/Private/Channels/MovieSceneChannel.cpp
2025-05-18 13:04:45 +08:00

22 lines
746 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Channels/MovieSceneChannel.h"
#include "Curves/KeyHandle.h"
#include "IMovieSceneRetimingInterface.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(MovieSceneChannel)
void FMovieSceneChannel::GetKeyTime(const FKeyHandle InHandle, FFrameNumber& OutKeyTime)
{
GetKeyTimes(MakeArrayView(&InHandle, 1), MakeArrayView(&OutKeyTime, 1));
}
void FMovieSceneChannel::SetKeyTime(const FKeyHandle InHandle, const FFrameNumber InKeyTime)
{
SetKeyTimes(MakeArrayView(&InHandle, 1), MakeArrayView(&InKeyTime, 1));
}
void FMovieSceneChannel::ChangeFrameResolution(FFrameRate SourceRate, FFrameRate DestinationRate)
{
RemapTimes(UE::MovieScene::FFrameRateRetiming{ SourceRate, DestinationRate });
}