Navigation
API > API/Plugins > API/Plugins/InterchangeImport > API/Plugins/InterchangeImport/MaterialX > API/Plugins/InterchangeImport/MaterialX/MaterialXUtils > API/Plugins/InterchangeImport/MaterialX/MaterialXUtils/FMaterialXSurfac-
References
| Module | InterchangeImport |
| Header | /Engine/Plugins/Interchange/Runtime/Source/Import/Public/MaterialX/MaterialXUtils/MaterialXSurfaceShaderAbstract.h |
| Include | #include "MaterialX/MaterialXUtils/MaterialXSurfaceShaderAbstract.h" |
template<typename T>
bool ConnectNodeOutputToInput
&40;
const char &42; InputName,
UInterchangeShaderNode &42; ShaderNode,
const FString & InputShaderName,
T DefaultValue,
const TOptional< TextureCompressionSettings > & OptionalTextureCompression
&41;
Remarks
Connect an output either from a node name or a node graph from a MaterialX input to the ShaderNode
Parameters
| Name | Description |
|---|---|
| InputName | The name of the input of the SurfaceShaderNode to retrieve |
| ShaderNode | The Interchange shader node to connect the MaterialX's node or node graph to |
| InputShaderName | The name of the input of the shader node to connect to |
| DefaultValue | The default value of the MaterialX input |
| OptionalTextureCompression | Set the texture compression for all textures along the path of an input |