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 (BlueprintType)
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 | ConnectOuputToInput
(
UInterchangeBaseNode* InterchangeNode, |
||
| 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 whether a particular input exists on a given node. | |
| bool | HasParameter
(
const UInterchangeBaseNode* InterchangeNode, |
Checks whether a particular input exists as a parameter on a given node. | |
| bool | Returns true if the attribute key is associated with an input (starts with "Inputs:"). | ||
| bool | IsAParameter
(
const FString& AttributeKey |
Returns true if the attribute key is an input that represents parameters (ends with ":Parameter"). | |
| FString | MakeInputConnectionKey
(
const FString& InputName |
Makes an attribute key to represent a node being connected to an input (that is, Inputs:InputName:Connect). | |
| FString | MakeInputName
(
const FString& InputKey |
From an attribute key associated with an input (that is, Inputs:InputName:Value), retrieves the input name. | |
| FString | MakeInputParameterKey
(
const FString& InputName |
Makes an attribute key to represent a parameter being given to an input (that is, Inputs:InputName:Parameter). | |
| FString | MakeInputValueKey
(
const FString& InputName |
Makes an attribute key to represent a value being given to an input (that is, Inputs:InputName:Value). |
Constants
| Name | Description |
|---|---|
| InputPrefix | |
| InputSeparator | |
| OutputByIndex | |
| ParameterSuffix |