Navigation
BlueprintAPI > BlueprintAPI/GeometryScript > BlueprintAPI/GeometryScript/Materials
Compact the MaterialIDs of the TargetMesh, ie remove any un-used MaterialIDs and remap the remaining N in-use MaterialIDs to the range [0,N-1]. Optionally compute a Compacted list of Materials.
Target is Geometry Script Library Mesh Material Functions
Inputs
| Type | Name | Description |
|---|---|---|
| exec | In | |
| object | Target Mesh | |
| object | Source Material List | Input Material list, assumption is that SourceMaterialList.Num() == number of MaterialIDs on mesh at input |
| boolean | Remove Duplicate Materials | Whether to also remove duplicate materials from the compacted list |
Outputs
| Type | Name | Description |
|---|---|---|
| exec | Out | |
| object | Compacted Material List | new Compacted Material list, one-to-one with new compacted MaterialIDs |
| object | Target Mesh |