Files
UnrealEngine/Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Private/SkeletalMeshNotifier.cpp
2025-05-18 13:04:45 +08:00

24 lines
506 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "SkeletalMeshNotifier.h"
FSkeletalMeshNotifyDelegate& ISkeletalMeshNotifier::Delegate()
{
return NotifyDelegate;
}
bool ISkeletalMeshNotifier::Notifying() const
{
return bNotifying;
}
void ISkeletalMeshNotifier::Notify(const TArray<FName>& BoneNames, const ESkeletalMeshNotifyType InNotifyType) const
{
if (!bNotifying)
{
TGuardValue<bool> RecursionGuard(bNotifying, true);
NotifyDelegate.Broadcast(BoneNames, InNotifyType);
}
}