UEditorEngine::AssignReplacementComponentsByActors

Replaces the components in ActorsToReplace with an primitive component in Replacement

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h

Include

#include "Editor/EditorEngine.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EditorServer.cpp

Syntax

virtual void AssignReplacementComponentsByActors
(
    TArray< AActor * > & ActorsToReplace,
    AActor * Replacement,
    UClass * ClassToReplace
)

Remarks

Replaces the components in ActorsToReplace with an primitive component in Replacement

Parameters

Parameter

Description

ActorsToReplace

Primitive components in the actors in this array will have their ReplacementPrimitive set to a component in Replacement

Replacement

The first usable component in Replacement will be the ReplacementPrimitive for the actors

ClassToReplace

If this is set, only components will of this class will be used/replaced

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