Navigation
API > API/Plugins > API/Plugins/EditorScriptingUtilities > API/Plugins/EditorScriptingUtilities/UEditorLevelLibrary
Deprecated * The Editor Scripting Utilities Plugin is deprecated - Use the function in Static Mesh Editor Subsystem
References
| Module | EditorScriptingUtilities |
| 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&40;BlueprintCallable, Category&61;"Editor Scripting &124; Dataprep",
Meta&61;&40;DeprecatedFunction, DeprecationMessage&61;"The Editor Scripting Utilities Plugin is deprecated &45; Use the function in Static Mesh Editor Subsystem"&41;&41;
static void ReplaceMeshComponentsMaterialsOnActors
&40;
const TArray< class AActor &42; > & Actors,
class UMaterialInterface &42; MaterialToBeReplaced,
class UMaterialInterface &42; NewMaterial
&41;
Remarks
Find the references of the material MaterialToReplaced on all the MeshComponents of all the Actors provided and replace it by NewMaterial.
Parameters
| Name | Description |
|---|---|
| Actors | List of Actors to search from. |
| MaterialToBeReplaced | Material we want to replace. |
| NewMaterial | Material to replace MaterialToBeReplaced by. |