Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

32 lines
808 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Math/Vector2D.h"
#include "SGraphNodeComment.h"
#include "SNodePanel.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#define UE_API MATERIALEDITOR_API
class UMaterialGraphNode_Comment;
class SGraphNodeMaterialComment : public SGraphNodeComment
{
public:
SLATE_BEGIN_ARGS(SGraphNodeMaterialComment){}
SLATE_END_ARGS()
UE_API void Construct(const FArguments& InArgs, class UMaterialGraphNode_Comment* InNode);
// SNodePanel::SNode interface
UE_API virtual void MoveTo(const FVector2f& NewPosition, FNodeSet& NodeFilter, bool bMarkDirty = true) override;
// End of SNodePanel::SNode interface
private:
/** Cached material graph node pointer to avoid casting */
UMaterialGraphNode_Comment* CommentNode;
};
#undef UE_API