Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UMaterialGraph
Description
Get a list of expressions not reachable from any material output. Does not require an open editor and can be called headlessly via UMaterialEditingLibrary.
| Name | GetUnusedMaterialExpressions |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/MaterialGraph/MaterialGraph.h |
| Include Path | #include "MaterialGraph/MaterialGraph.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/MaterialGraph.cpp |
static void GetUnusedMaterialExpressions
(
UMaterial * Material,
TArray < UMaterialExpression * > & OutUnused
)
Parameters
| Name | Remarks |
|---|---|
| Material | The Material to query. |
| OutUnused | Array to contain unused expressions. |