Core Concepts
Gameplay Tags are structured labels that describe gameplay meaning:
Character.State.StunnedDamage.Type.FireFaction.EnemyQuest.Main.CompletedInteraction.Usable.DoorDot-separated paths
Section titled “Dot-separated paths”Each segment narrows the meaning:
DamageDamage.TypeDamage.Type.FireDamage is broad; Damage.Type.Fire is specific. A path must not be empty, begin or end with a
dot, contain double dots, contain /, or contain an empty segment.
Hierarchy
Section titled “Hierarchy”The hierarchy supports both organization and matching:
CharacterCharacter.StateCharacter.State.StunnedCharacter.State.BurningCharacter.State.FrozenUse Exact when the complete paths must be equal. Use Include Children when a parent query should also accept an owned descendant.
| Mode | Query behavior |
|---|---|
| Exact | Damage.Type.Fire matches only Damage.Type.Fire. |
| Include Children | A query for Damage.Type matches an owned Damage.Type.Fire. |
In the C# API, exact: true selects exact matching and exact: false selects the parent-query
behavior described above.
Gameplay Tags and Unity Tags
Section titled “Gameplay Tags and Unity Tags”| Unity Tags | Gameplay Tags |
|---|---|
| One flat tag per GameObject | Multiple hierarchical tags per object or container |
| Useful for Unity-level categories | Useful for gameplay state and classification |
| No parent/child matching | Exact and parent-query matching |
Use Unity Tags when Unity or another asset explicitly expects them. Use Gameplay Tags when systems need reusable, hierarchical gameplay meaning.
Gameplay Tags and variables
Section titled “Gameplay Tags and variables”Tags classify; variables store values.
Use Gameplay Tags for:
- state such as
Character.State.Stunned; - faction such as
Faction.Enemy; - damage identity such as
Damage.Type.Fire; and - interaction categories such as
Interaction.Usable.Door.
Use variables for:
- health, stamina, currency, and other quantities;
- timers and cooldowns;
- positions and object references; and
- progress values or user-facing text.
Examples of tag families
Section titled “Examples of tag families”Character.State.StunnedCharacter.State.InvulnerableFaction.PlayerFaction.EnemyDamage.Type.FireDamage.Resistance.FireQuest.Main.ActiveQuest.Main.CompletedInteraction.UsableInteraction.Usable.Door
