You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This represents UE4/Main @17911760, Release-5.0 @17915875 and Dev-PerfTest @17914035 [CL 17949667 by aurel cordonnier in ue5-main branch]
29 lines
857 B
C++
29 lines
857 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "AnimBlueprintExtension_CallFunction.h"
|
|
#include "AnimGraphNode_Base.h"
|
|
|
|
void UAnimBlueprintExtension_CallFunction::HandleStartCompilingClass(const UClass* InClass, IAnimBlueprintCompilationBracketContext& InCompilationContext, IAnimBlueprintGeneratedClassCompiledData& OutCompiledData)
|
|
{
|
|
Counter = 0;
|
|
CustomEventNames.Empty();
|
|
}
|
|
|
|
FName UAnimBlueprintExtension_CallFunction::AddCustomEventName(UAnimGraphNode_Base* InNode)
|
|
{
|
|
static FName BaseName(TEXT("AnimNode_CallFunction_EventStub"));
|
|
FName Name(BaseName, Counter++);
|
|
CustomEventNames.Add(InNode, Name);
|
|
|
|
return Name;
|
|
}
|
|
|
|
FName UAnimBlueprintExtension_CallFunction::FindCustomEventName(UAnimGraphNode_Base* InNode) const
|
|
{
|
|
if(const FName* ExistingName = CustomEventNames.Find(InNode))
|
|
{
|
|
return *ExistingName;
|
|
}
|
|
return NAME_None;
|
|
}
|