The ClearTags
method is used to remove all tags from a PhysicsShape
instance. This method is marked as obsolete, and it is recommended to use the Tags
property instead for managing tags.
The ClearTags
method is used to remove all tags from a PhysicsShape
instance. This method is marked as obsolete, and it is recommended to use the Tags
property instead for managing tags.
To clear all tags from a PhysicsShape
object, simply call the ClearTags
method on the instance. However, since this method is obsolete, consider using the Tags
property for tag management.
// Example of using ClearTags (not recommended due to obsolescence) PhysicsShape shape = new PhysicsShape(); bool result = shape.ClearTags(); // Recommended approach using Tags property shape.Tags.Clear();