Navigation
API > API/Plugins > API/Plugins/InterchangeNodes
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UInterchangeShaderPortsAPI
References
| Module | InterchangeNodes |
| Header | /Engine/Plugins/Interchange/Runtime/Source/Nodes/Public/InterchangeShaderGraphNode.h |
| Include | #include "InterchangeShaderGraphNode.h" |
Syntax
UCLASS&40;BlueprintType, Experimental&41;
class UInterchangeShaderPortsAPI : public UObject
Remarks
The Shader Ports API manages a set of inputs and outputs attributes. This API can be used over any InterchangeBaseNode that wants to support shader ports as attributes.
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | ConnectDefaultOuputToInput
(
UInterchangeBaseNode* InterchangeNode, |
Adds an input connection attribute. | |
| bool | ConnectOuputToInputByIndex
(
UInterchangeBaseNode* InterchangeNode, |
Adds an input connection attribute. | |
| bool | ConnectOuputToInputByName
(
UInterchangeBaseNode* InterchangeNode, |
Adds an input connection attribute. | |
| void | GatherInputs
(
const UInterchangeBaseNode* InterchangeNode, |
Retrieves the names of all the inputs for a given node. | |
| bool | GetInputConnection
(
const UInterchangeBaseNode* InterchangeNode, |
Retrieves the node unique id and the output name connected to a given input, if any. | |
| UE::Interchange::EAttributeTypes | GetInputType
(
const UInterchangeBaseNode* InterchangeNode, |
For an input with a value, returns the type of the stored value. | |
| int32 | GetOutputIndexFromName
(
const FString& OutputName |
Returns INDEX_NONE if OutputName is not an index. | |
| bool | HasInput
(
const UInterchangeBaseNode* InterchangeNode, |
Checks if a particular input exists on a given node. | |
| bool | Returns true if the attribute key is associated with an input (starts with "Inputs:"). | ||
| FString | MakeInputConnectionKey
(
const FString& InputName |
Makes an attribute key to represent a node being connected to an input (ie: Inputs:InputName:Connect). | |
| FString | MakeInputName
(
const FString& InputKey |
From an attribute key associated with an input (ie: Inputs:InputName:Value), retrieves the input name from it. | |
| FString | MakeInputValueKey
(
const FString& InputName |
Makes an attribute key to represent a value being given to an input (ie: Inputs:InputName:Value). |
Constants
| Name | Description |
|---|---|
| InputPrefix | |
| InputSeparator | |
| OutputByIndex |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | ConnectOuputToInput
(
UInterchangeBaseNode* InterchangeNode, |
This function is replace by ConnectOuputToInputByName. |