diff --git a/Source/Engine/Level/Actor.cpp b/Source/Engine/Level/Actor.cpp index 08d2832d1..1cdfccd3b 100644 --- a/Source/Engine/Level/Actor.cpp +++ b/Source/Engine/Level/Actor.cpp @@ -543,7 +543,7 @@ void Actor::SetLayerRecursive(int32 layerIndex) OnLayerChanged(); } -void Actor::SetNameNoCopy(String&& value) +void Actor::SetName(String&& value) { if (_name == value) return; diff --git a/Source/Engine/Level/Actor.h b/Source/Engine/Level/Actor.h index 787cc6835..2a2fb1a4c 100644 --- a/Source/Engine/Level/Actor.h +++ b/Source/Engine/Level/Actor.h @@ -182,15 +182,16 @@ public: } /// - /// Sets the actor name without copying the string. + /// Sets the actor name. /// - void SetNameNoCopy(String&& value); + /// The value to set. + API_PROPERTY() void SetName(String&& value); /// /// Sets the actor name. /// /// The value to set. - API_PROPERTY() void SetName(const StringView& value); + void SetName(const StringView& value); public: ///