Navigation
API > API/Plugins > API/Plugins/InterchangeNodes
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.
| Name | UInterchangeShaderPortsAPI |
| Type | class |
| Header File | /Engine/Plugins/Interchange/Runtime/Source/Nodes/Public/InterchangeShaderGraphNode.h |
| Include Path | #include "InterchangeShaderGraphNode.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType)
class UInterchangeShaderPortsAPI : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInterchangeShaderPortsAPI
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| InputPrefix | const TCHAR * | InterchangeShaderGraphNode.h | |
| InputSeparator | const TCHAR * | InterchangeShaderGraphNode.h | |
| OutputByIndex | const TCHAR * | InterchangeShaderGraphNode.h | |
| ParameterSuffix | const TCHAR * | InterchangeShaderGraphNode.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool ConnectDefaultOuputToInput
(
UInterchangeBaseNode* InterchangeNode, |
Adds an input connection attribute. | InterchangeShaderGraphNode.h |
|
static bool ConnectOuputToInput
(
UInterchangeBaseNode* InterchangeNode, |
InterchangeShaderGraphNode.h | ||
static bool ConnectOuputToInputByIndex
(
UInterchangeBaseNode* InterchangeNode, |
Adds an input connection attribute. | InterchangeShaderGraphNode.h |
|
static bool ConnectOuputToInputByName
(
UInterchangeBaseNode* InterchangeNode, |
Adds an input connection attribute. | InterchangeShaderGraphNode.h |
|
static void GatherInputs
(
const UInterchangeBaseNode* InterchangeNode, |
Retrieves the names of all the inputs for a given node. | InterchangeShaderGraphNode.h |
|
static bool GetInputConnection
(
const UInterchangeBaseNode* InterchangeNode, |
Retrieves the node unique id and the output name connected to a given input, if any. | InterchangeShaderGraphNode.h |
|
static UE::Interchange::EAttributeTypes GetInputType
(
const UInterchangeBaseNode* InterchangeNode, |
For an input with a value, returns the type of the stored value. | InterchangeShaderGraphNode.h | |
static int32 GetOutputIndexFromName
(
const FString& OutputName |
Returns INDEX_NONE if OutputName is not an index. | InterchangeShaderGraphNode.h | |
static bool HasInput
(
const UInterchangeBaseNode* InterchangeNode, |
Checks whether a particular input exists on a given node. | InterchangeShaderGraphNode.h |
|
static bool HasParameter
(
const UInterchangeBaseNode* InterchangeNode, |
Checks whether a particular input exists as a parameter on a given node. | InterchangeShaderGraphNode.h |
|
static bool IsAnInput
(
const FString& AttributeKey |
Returns true if the attribute key is associated with an input (starts with "Inputs:"). | InterchangeShaderGraphNode.h |
|
static bool IsAParameter
(
const FString& AttributeKey |
Returns true if the attribute key is an input that represents parameters (ends with ":Parameter"). | InterchangeShaderGraphNode.h |
|
static FString MakeInputConnectionKey
(
const FString& InputName |
Makes an attribute key to represent a node being connected to an input (that is, Inputs:InputName:Connect). | InterchangeShaderGraphNode.h |
|
static FString MakeInputName
(
const FString& InputKey |
From an attribute key associated with an input (that is, Inputs:InputName:Value), retrieves the input name. | InterchangeShaderGraphNode.h |
|
static FString MakeInputParameterKey
(
const FString& InputName |
Makes an attribute key to represent a parameter being given to an input (that is, Inputs:InputName:Parameter). | InterchangeShaderGraphNode.h |
|
static FString MakeInputValueKey
(
const FString& InputName |
Makes an attribute key to represent a value being given to an input (that is, Inputs:InputName:Value). | InterchangeShaderGraphNode.h |
|