Merge branch 'remove-tag' of https://github.com/Tryibion/FlaxEngine into Tryibion-remove-tag

This commit is contained in:
Wojtek Figat
2023-09-10 10:18:45 +02:00
2 changed files with 11 additions and 0 deletions

View File

@@ -476,6 +476,11 @@ void Actor::AddTag(const Tag& tag)
Tags.AddUnique(tag);
}
void Actor::RemoveTag(const Tag& tag)
{
Tags.Remove(tag);
}
PRAGMA_DISABLE_DEPRECATION_WARNINGS
const String& Actor::GetTag() const

View File

@@ -136,6 +136,12 @@ public:
/// <param name="tag">The tag to add.</param>
API_FUNCTION() void AddTag(const Tag& tag);
/// <summary>
/// Removes a tag to the actor
/// </summary>
/// <param name="tag">The tag to remove.</param>
API_FUNCTION() void RemoveTag(const Tag& tag);
/// <summary>
/// Gets the name of the tag.
/// [Deprecated in v1.5]