Tagger¶
A component that labels a GameObject with one or more tags.
Namespace: Jungle.Primitives
Inherits: JungleBehaviour → MonoBehaviour
Menu path: Jungle / Filtering / Tagger
Overview¶
Tagger marks a GameObject with a set of keys. A tag that filters on other objects check for must be a shared Key asset: switch the tag to Asset and pick it. Any filter that needs to check tags — such as JungleTagFilter — reads the Tagger on the target GameObject via GetComponent<Tagger>(). Tags are per-GameObject, not per-component: the same Tagger serves every consumer that queries tags on that object.
Properties¶
| Property | Type | Description |
|---|---|---|
| tags | IReadOnlyList<SmartKey> |
The tags assigned to this GameObject. |
Methods¶
| Method | Returns | Description |
|---|---|---|
HasTag(SmartKey tag) |
bool |
Whether this tagger carries the given tag. |