Files
UnrealEngine/Engine/Source/Editor/MovieSceneTools/Private/Channels/ByteChannelKeyProxy.cpp
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

30 lines
895 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Channels/ByteChannelKeyProxy.h"
#include "Channels/MovieSceneByteChannel.h"
#include "HAL/PlatformCrt.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(ByteChannelKeyProxy)
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);
}