Files
UnrealEngine/Engine/Source/Editor/MovieSceneTools/Private/Channels/ByteChannelKeyProxy.cpp
2025-05-18 13:04:45 +08:00

27 lines
831 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Channels/ByteChannelKeyProxy.h"
#include "Channels/MovieSceneByteChannel.h"
#include "HAL/PlatformCrt.h"
struct FPropertyChangedEvent;
void UByteChannelKeyProxy::Initialize(FKeyHandle InKeyHandle, TMovieSceneChannelHandle<FMovieSceneByteChannel> InChannelHandle, TWeakObjectPtr<UMovieSceneSection> InWeakSection)
{
KeyHandle = InKeyHandle;
ChannelHandle = InChannelHandle;
WeakSection = InWeakSection;
}
void UByteChannelKeyProxy::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
{
Super::PostEditChangeProperty(PropertyChangedEvent);
OnProxyValueChanged(ChannelHandle, WeakSection.Get(), KeyHandle, Value, Time);
}
void UByteChannelKeyProxy::UpdateValuesFromRawData()
{
RefreshCurrentValue(ChannelHandle, KeyHandle, Value, Time);
}