Navigation
API > API/Plugins > API/Plugins/InterchangeNodes
A shader node is a named set of inputs and outputs. It can be connected to other shader nodes and finally to a shader graph input.
| Name | UInterchangeShaderNode |
| Type | class |
| Header File | /Engine/Plugins/Interchange/Runtime/Source/Nodes/Public/InterchangeShaderGraphNode.h |
| Include Path | #include "InterchangeShaderGraphNode.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType)
class UInterchangeShaderNode : public UInterchangeBaseNode
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInterchangeBaseNode → UInterchangeShaderNode
Derived Classes
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Macro_CustomShaderTypeKey | const UE::Interchange::FAttributeKey | InterchangeShaderGraphNode.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AddFloatInput
(
const FString& InputName, |
Set the Float Attribute on the Shader Node. | InterchangeShaderGraphNode.h |
|
bool AddLinearColorInput
(
const FString& InputName, |
Set the Linear Color Attribute on the Shader Node. | InterchangeShaderGraphNode.h |
|
bool AddStringInput
(
const FString& InputName, |
Set the String Attribute on the Shader Node. | InterchangeShaderGraphNode.h |
|
bool GetCustomShaderType
(
FString& AttributeValue |
InterchangeShaderGraphNode.h |
|
|
bool SetCustomShaderType
(
const FString& AttributeValue |
Sets which type of shader this nodes represents. | InterchangeShaderGraphNode.h |
|
Overridden from UInterchangeBaseNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString GetTypeName() |
InterchangeShaderGraphNode.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UInterchangeShaderNode * Create
(
UInterchangeBaseNodeContainer* NodeContainer, |
Creates a new UInterchangeShaderNode and adds it to NodeContainer as a translated node. | InterchangeShaderGraphNode.h | |
static FString MakeNodeUid
(
const FStringView NodeName, |
Build and return a UID name for a shader node. | InterchangeShaderGraphNode.h |