Navigation
BlueprintAPI > BlueprintAPI/GeometryScript > BlueprintAPI/GeometryScript/Materials
Remap material IDs to be consistent with a Required Materials list. The Target Mesh material IDs will be remapped to reference the Combined Materials list, which will always start with the Required Materials.
If a Material cannot be found in CurrentMeshMaterials, a warning will be printed and the MaterialID left unmodified, unless RemapInvalidMaterialID is set to a value >= 0, in which case RemapInvalidMaterialID will be assigned
Target is Geometry Script Library Mesh Material Functions
Inputs
| Type | Name | Description |
|---|---|---|
| exec | In | |
| object | Target Mesh | Mesh to update |
| object | Target Mesh Materials | Initial materials used by the TargetMesh |
| object | Required Materials | Materials that must be used, unchanged, in the output |
| integer | Remap Invalid Material ID | If >= 0, automatically remap invalid input material IDs to this value |
| boolean | Compact Duplicate Materials | If true, materials from TargetMeshMaterials will only be added if they are not already in RequiredMaterials. If false, all TargetMeshMaterials are appended. |
Outputs
| Type | Name | Description |
|---|---|---|
| exec | Out | |
| object | Combined Materials | Final materials used by the TargetMesh after remapping. Always starts with the RequiredMaterials. |
| object | Target Mesh |