Navigation
API > API/Plugins > API/Plugins/InterchangeImport > API/Plugins/InterchangeImport/FMaterialXBase
Description
Set the node definition of a shader, useful when a shader has multiple definition per types and when we know the type only at the top level during a surfacematerial for example and not a construction-time. Make sure that the pointer don't cease to exist, no allocation is performed here, use the definition in MaterialXDefinitions
| Name | SetNodeDefinition |
| Type | function |
| Header File | /Engine/Plugins/Interchange/Runtime/Source/Import/Public/MaterialX/MaterialXUtils/MaterialXBase.h |
| Include Path | #include "MaterialX/MaterialXUtils/MaterialXBase.h" |
| Source | /Engine/Plugins/Interchange/Runtime/Source/Import/Private/MaterialX/MaterialXUtils/MaterialXBase.cpp |
void SetNodeDefinition
(
const char * NodeDefinition
)