bool HasTag( string tag )

robot_2Generated
code_blocksInput

Description

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.

Usage

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

// 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
}