FActorLabelUtilities::RenameExistingActor

Does an explicit actor rename.

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/EditorEngine.cpp

Syntax

static void RenameExistingActor
(
    AActor * Actor,
    const FString & NewActorLabel,
    bool bMakeUnique
)

Remarks

Does an explicit actor rename. In addition to changing the label this will also fix any soft references pointing to it

Parameters

Parameter

Description

Actor

The actor to change the label of

NewActorLabel

The new label string to assign to the actor. If empty, the actor will have a default label.

bMakeUnique

If true, it will call SetActorLabelUnique, if false it will use the exact label specified

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