The HasTag
method checks if a specific tag is associated with the PhysicsShape
instance. This method is marked as obsolete, and it is recommended to use the Tags
property instead.
The HasTag
method checks if a specific tag is associated with the PhysicsShape
instance. This method is marked as obsolete, and it is recommended to use the Tags
property instead.
To use the HasTag
method, call it on an instance of PhysicsShape
and pass the tag you want to check as a string parameter. The method returns a boolean indicating whether the tag is present.
// Example of using HasTag method PhysicsShape shape = new PhysicsShape(); // Check if the shape has a specific tag bool hasTag = shape.HasTag("exampleTag"); if (hasTag) { // Do something if the tag is present }