Files
UnrealEngine/Engine/Source/Editor/UMGEditor/Classes/WidgetGraphSchema.h
2025-05-18 13:04:45 +08:00

32 lines
899 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "EdGraphSchema_K2.h"
#include "WidgetGraphSchema.generated.h"
class UK2Node;
class UK2Node_CallFunction;
UCLASS(MinimalAPI)
class UWidgetGraphSchema : public UEdGraphSchema_K2
{
GENERATED_UCLASS_BODY()
public:
virtual void BackwardCompatibilityNodeConversion(UEdGraph* Graph, bool bOnlySafeChanges) const override;
private:
void ConvertAnimationEventNodes(UEdGraph* Graph) const;
void ConvertAddAnimationDelegate(UEdGraph* Graph) const;
void ConvertRemoveAnimationDelegate(UEdGraph* Graph) const;
void ConvertClearAnimationDelegate(UEdGraph* Graph) const;
void ReplaceAnimationFunctionAndAllocateDefaultPins(UEdGraph* Graph, UK2Node* OldNode, UK2Node_CallFunction* NewFunctionNode) const;
void FixDefaultToSelfForAnimation(UEdGraph* Graph) const;
};