Module |
|
Header |
/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorLevelLibrary.h |
Include |
#include "EditorLevelLibrary.h" |
Source |
/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorLevelLibrary.cpp |
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | Dataprep")
static void ReplaceMeshComponentsMaterials
(
const TArray< class UMeshComponent * > & MeshComponents,
class UMaterialInterface * MaterialToBeReplaced,
class UMaterialInterface * NewMaterial
)
Find the references of the material MaterialToReplaced on all the MeshComponents provided and replace it by NewMaterial.
Parameter |
Description |
---|---|
MeshComponents |
List of MeshComponent to search from. |
MaterialToBeReplaced |
Material we want to replace. |
NewMaterial |
Material to replace MaterialToBeReplaced by. |