gameplay-tags

Implement hierarchical Gameplay Tags in Unreal Engine C++ for state, damage, and ability labeling.

1|Updated Sep 6, 2026
Ready to run
npx skills add https://github.com/ziyarduc/Baran-bk-game --skill gameplay-tags-ziyarduc
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: gameplay-tags
Source: https://github.com/ziyarduc/Baran-bk-game/tree/main/.agents/skills/gameplay-tags
Command: npx skills add https://github.com/ziyarduc/Baran-bk-game --skill gameplay-tags-ziyarduc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Unreal Engine projects often rely on brittle enums, booleans, and string comparisons to model states, damage types, and ability identifiers, which break as systems grow. This Skill provides the complete Gameplay Tags workflow — hierarchical FName-based labels registered centrally — so every system (GAS, AI, animation, UI) shares one extensible, designer-editable taxonomy. ## Core Features & Use Cases - Native and Config Tag Definition: Declare compile-time-safe tags with UE_DECLARE_GAMEPLAY_TAG_EXTERN / UE_DEFINE_GAMEPLAY_TAG macros, or register tags via DefaultGameplayTags.ini and DataTable sources. - Container Operations and Queries: Use FGameplayTagContainer for hierarchy-aware checks (HasTag, HasAny, HasAll) and FGameplayTagQuery for data-driven activation conditions editable in the Details panel. - System Integration: Implement IGameplayTagAssetInterface so actors expose tags to GAS, behavior trees, and UI without casting. - Use Case: You are building a Battle Royale character that can be stunned, burning, or aiming simultaneously. Instead of overlapping booleans, you add State.Stunned or Damage.Fire tags to the character's container and gate abilities, animations, and UI on those tags. ## Quick Start Ask the AI to define native Gameplay Tags for character states and wire a tag container with stun gating into your Unreal C++ character class.

Frequently Asked Questions about gameplay-tags

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define Gameplay Tags in Unreal Engine C++?▼

Declare tags in a header with UE_DECLARE_GAMEPLAY_TAG_EXTERN and define them in a .cpp file with UE_DEFINE_GAMEPLAY_TAG or UE_DEFINE_GAMEPLAY_TAG_COMMENT. Native tags register at module startup, giving compile-time safety and no string lookups at call sites.

What is the difference between HasTag and HasTagExact?▼

HasTag is hierarchy-aware, so a container holding Ability.Attack.Melee returns true for HasTag(Ability.Attack). HasTagExact checks only the explicitly added tags. Use the Exact variants when you need strict equality rather than parent matching.

When should I use Gameplay Tags instead of enums?▼

Use enums for small, fixed, mutually exclusive sets switched in C++. Use Gameplay Tags for open-ended, hierarchical, designer-extensible labels, when an object holds multiple states at once, or when activation conditions must be editable without recompiling.

Why does RequestGameplayTag return an invalid tag?▼

RequestGameplayTag returns an invalid tag when the requested name was never registered in the tag dictionary, usually due to a typo or missing ini entry. Pass false as the second argument to suppress the ensure, and prefer native tags to eliminate this class of error.

Does FGameplayTagContainer replicate over the network?▼

Yes, both FGameplayTag and FGameplayTagContainer implement NetSerialize. Enabling Fast Replication in Project Settings sends a 16-bit net index instead of full FNames, which is cheaper for containers with many tags but requires identical tag dictionaries on client and server.

Why does UE_DEFINE_GAMEPLAY_TAG fail in a header file?▼

The macro contains a static_assert that rejects definitions in header files at compile time, preventing duplicate registration across translation units. Place UE_DEFINE_GAMEPLAY_TAG in a .cpp file and use UE_DECLARE_GAMEPLAY_TAG_EXTERN in the header.