UEditorLevelLibrary::ReplaceMeshComponentsMeshesOnActors

Find the references of the mesh MeshToBeReplaced on all the MeshComponents of all the Actors provided and replace it by NewMesh.

Windows
MacOS
Linux

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

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | Dataprep")
static void ReplaceMeshComponentsMeshesOnActors
(
    const TArray< class AActor * > & Actors,
    class UStaticMesh * MeshToBeReplaced,
    class UStaticMesh * NewMesh
)

Remarks

Find the references of the mesh MeshToBeReplaced on all the MeshComponents of all the Actors provided and replace it by NewMesh.

Parameters

Parameter

Description

Actors

List of Actors to search from.

MeshToBeReplaced

Mesh we want to replace.

NewMesh

Mesh to replace MeshToBeReplaced by.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss