AActor::SetActorLabel

Assigns a new label to this actor. Actor labels are only available in development builds.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h

Include

#include "GameFramework/Actor.h"

Source

/Engine/Source/Runtime/Engine/Private/ActorEditor.cpp

Syntax

void SetActorLabel
(
    const FString & NewActorLabel,
    bool bMarkDirty
)

Remarks

Assigns a new label to this actor. Actor labels are only available in development builds.

Parameters

Parameter

Description

NewActorLabel

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

bMarkDirty

If true the actor's package will be marked dirty for saving. Otherwise it will not be. You should pass false for this parameter if dirtying is not allowed (like during loads)

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