Navigation
API > API/Plugins > API/Plugins/InterchangeNodes > API/Plugins/InterchangeNodes/UInterchangeShaderPortsAPI
References
| Module | InterchangeNodes |
| Header | /Engine/Plugins/Interchange/Runtime/Source/Nodes/Public/InterchangeShaderGraphNode.h |
| Include | #include "InterchangeShaderGraphNode.h" |
| Source | /Engine/Plugins/Interchange/Runtime/Source/Nodes/Private/InterchangeShaderGraphNode.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"Interchange &124; Node &124; Material"&41;
static bool ConnectOuputToInputByIndex
&40;
UInterchangeBaseNode &42; InterchangeNode,
const FString & InputName,
const FString & ExpressionUid,
int32 OutputIndex
&41;
Remarks
Adds an input connection attribute. true if the input connection was successfully added to the node. OutputIndex is encoded in a string in the following pattern ExpressionUid:OutputByIndex:FString::FromInt(OutputIndex) The index should be retrieved using UInterchangeShaderPortsAPI::GetOutputIndexFromName
Parameters
| Name | Description |
|---|---|
| InterchangeNode | The Node to create the input on. |
| InputName | The name to give to the input. |
| ExpressionUid | The unique id of the node to connect to the input. |
| OutputIndex | The index of the output from ExpressionUid to connect to the input. |