# TagHandle

> A handle to one of the tag values that can be applied to a GameObject.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public struct TagHandle
```

## Remarks

If you are checking the tag on a GameObject to see if it matches a particular value, then using a TagHandle instead of the raw tag name can be faster.

Additional Resources: [GameObject.CompareTag](/engine/6000.0/script-reference/unityengine/gameobject/comparetag.md).

## Static Methods

| Method                                                                                    | Description                             |
| ----------------------------------------------------------------------------------------- | --------------------------------------- |
| [GetExistingTag](/engine/6000.0/script-reference/unityengine/taghandle/getexistingtag.md) | Get a handle to a existing defined tag. |
