EM_Task/CoreUObject/Private/Misc/NotifyHook.cpp
Boshuang Zhao 5144a49c9b add
2026-02-13 16:18:33 +08:00

20 lines
890 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
/*=============================================================================
UnMisc.cpp: Various core platform-independent functions.
=============================================================================*/
// Core includes.
#include "Misc/NotifyHook.h"
#include "UObject/UnrealType.h"
void FNotifyHook::NotifyPreChange(FEditPropertyChain* PropertyAboutToChange)
{
NotifyPreChange(PropertyAboutToChange != NULL && PropertyAboutToChange->Num() > 0 ? PropertyAboutToChange->GetActiveNode()->GetValue() : NULL);
}
void FNotifyHook::NotifyPostChange(const FPropertyChangedEvent& PropertyChangedEvent, class FEditPropertyChain* PropertyThatChanged)
{
NotifyPostChange(PropertyChangedEvent, PropertyThatChanged != NULL && PropertyThatChanged->Num() > 0 ? PropertyThatChanged->GetActiveNode()->GetValue() : NULL);
}