diff --git a/Source/Engine/Level/Actor.cpp b/Source/Engine/Level/Actor.cpp index 1cdfccd3b..08d2832d1 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::SetName(String&& value) +void Actor::SetNameNoCopy(String&& value) { if (_name == value) return; diff --git a/Source/Engine/Level/Actor.h b/Source/Engine/Level/Actor.h index fdf587b07..787cc6835 100644 --- a/Source/Engine/Level/Actor.h +++ b/Source/Engine/Level/Actor.h @@ -184,7 +184,7 @@ public: /// /// Sets the actor name without copying the string. /// - API_FUNCTION() void SetName(String&& value); + void SetNameNoCopy(String&& value); /// /// Sets the actor name.