# Tags

> Aego 0.12.5 · development; docs build `4a32b816933e02930662f6a443cb25abe6050d090c55e237cbff5c44ae9b25f8`. [Build manifest](/docs-build.json).

```
component engine.Tags
```

Tags names groups this node belongs to; scripts find them with scene.WithTag.

## From a script

Tags are read from scripts through `aego/scene`: find every node with a tag, or check a node you collided with.

```aes check
package game

import (
    "aego/log"
    "aego/scene"
)

script CountEnemies {
    var found []NodeRef

    func Ready() {
        for i := 0; i < 32; i++ {
            found = append(found, nil)
        }
        n := scene.WithTag("Enemy", found)
        log.Info("enemies in the level: " + string(n))
    }
}
```

## Fields

| Name | Script name | Type | Default | Description |
|---|---|---|---|---|
| Tags | `Tags` | `[]string` | `[]` | Dot-separated names like Enemy.Flying; a node tagged Enemy.Flying is also found by Enemy. |
