diff --git a/Source/Engine/Level/Actor.cpp b/Source/Engine/Level/Actor.cpp
index 73ef072b3..2ec3231d6 100644
--- a/Source/Engine/Level/Actor.cpp
+++ b/Source/Engine/Level/Actor.cpp
@@ -471,6 +471,21 @@ bool Actor::HasTag(const StringView& tag) const
return Tags.Contains(tag);
}
+PRAGMA_DISABLE_DEPRECATION_WARNINGS
+
+const String& Actor::GetTag() const
+{
+ return Tags.Count() != 0 ? Tags[0].ToString() : String::Empty;
+}
+
+void Actor::SetTag(const StringView& value)
+{
+ const Tag tag = Tags::Get(value);
+ Tags.Set(&tag, 1);
+}
+
+PRAGMA_ENABLE_DEPRECATION_WARNINGS
+
void Actor::SetLayer(int32 layerIndex)
{
layerIndex = Math::Clamp(layerIndex, 0, 31);
diff --git a/Source/Engine/Level/Actor.h b/Source/Engine/Level/Actor.h
index 38bd629a5..2888b7d49 100644
--- a/Source/Engine/Level/Actor.h
+++ b/Source/Engine/Level/Actor.h
@@ -130,6 +130,19 @@ public:
/// The tag to check.
API_FUNCTION() bool HasTag(const StringView& tag) const;
+ ///
+ /// Gets the name of the tag.
+ /// [Deprecated in v1.5]
+ ///
+ API_PROPERTY(Attributes="HideInEditor, NoSerialize, NoAnimate")
+ DEPRECATED const String& GetTag() const;
+
+ ///
+ /// Sets the name of the tag.
+ /// [Deprecated in v1.5]
+ ///
+ API_PROPERTY() DEPRECATED void SetTag(const StringView& value);
+
///
/// Gets the actor name.
///