Files
UnrealEngine/Engine/Plugins/Mutable/Source/MutableTools/Internal/MuT/NodeMaterialParameter.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

58 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Containers/Map.h"
#include "HAL/Platform.h"
#include "MuR/Ptr.h"
#include "MuR/RefCounted.h"
#include "MuT/NodeRange.h"
#include "MuT/NodeMaterial.h"
#include "MuT/NodeImage.h"
#define UE_API MUTABLETOOLS_API
namespace UE::Mutable::Private
{
/** NodeMaterialParameter class. */
class NodeMaterialParameter : public NodeMaterial
{
public:
/** Name of the parameter */
FString Name;
/** User provided ID to identify the parameter. */
FString UID;
/** Ranges for the parameter in case it is multidimensional. */
TArray<Ptr<NodeRange>> Ranges;
TArray<FString> ColorParameterNames;
TArray<FString> ScalarParameterNames;
TMap<FString, Ptr<NodeImage>> ImageParameterNodes;
public:
// Node Interface
virtual const FNodeType* GetType() const override { return &StaticType; }
static const FNodeType* GetStaticType() { return &StaticType; }
protected:
// Forbidden. Manage with the Ptr<> template.
inline ~NodeMaterialParameter() {}
private:
static UE_API FNodeType StaticType;
};
}
#undef UE_API