35 lines
1.0 KiB
C++
35 lines
1.0 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "EdGraph/EdGraphNodeUtils.h"
|
|
#include "AnimGraphNode_Base.h"
|
|
#include "AnimNodes/AnimNode_Slot.h"
|
|
#include "AnimGraphNode_Slot.generated.h"
|
|
|
|
UCLASS(MinimalAPI)
|
|
class UAnimGraphNode_Slot : public UAnimGraphNode_Base
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
UPROPERTY(EditAnywhere, Category=Settings)
|
|
FAnimNode_Slot Node;
|
|
|
|
//~ Begin UEdGraphNode Interface.
|
|
virtual FLinearColor GetNodeTitleColor() const override;
|
|
virtual FText GetTooltipText() const override;
|
|
virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
|
|
//~ End UEdGraphNode Interface.
|
|
|
|
//~ Begin UAnimGraphNode_Base Interface
|
|
virtual FString GetNodeCategory() const override;
|
|
virtual void BakeDataDuringCompilation(class FCompilerResultsLog& MessageLog) override;
|
|
//~ End UAnimGraphNode_Base Interface
|
|
|
|
private:
|
|
/** Constructing FText strings can be costly, so we cache the node's title */
|
|
FNodeTitleTextTable CachedNodeTitles;
|
|
};
|