Logo von Ue Gameplay Tags

Ue Gameplay Tags

Community
kevinpbuckley
ue-gameplay-tags

Use Gameplay Tags in Unreal C++ — hierarchical FName-based labels (FGameplayTag, FGameplayTagContainer), native tag declaration and definition (UE_DECLARE_GAMEPLAY_TAG_EXTERN / UE_DEFINE_GAMEPLAY_TAG / UE_DEFINE_GAMEPLAY_TAG_COMMENT / UE_DEFINE_GAMEPLAY_TAG_STATIC), tag registration via UGameplayTagsManager, runtime lookup with RequestGameplayTag, container operations (AddTag, RemoveTag, HasTag, HasTagExact, HasAny, HasAll), single-tag matching (MatchesTag, MatchesTagExact, MatchesAny), data-driven conditions with FGameplayTagQuery, the IGameplayTagAssetInterface, and config via DefaultGameplayTags.ini / DataTable sources. Use when modeling states, categories, damage types, ability identifiers, or any open-ended hierarchical label that multiple systems share; when replacing brittle enums or string comparisons; or when working with GAS, AI behavior trees, animation, or UI systems that gate behavior on tags.

Übersicht

Herausgeberkevinpbuckley
Repositoryunreal-engine-skills
Skill-Nameue-gameplay-tags
Sterne
89
Forks
9
Mitgelieferte Dateien
3
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 3

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von kevinpbuckley auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Ue Gameplay Tags in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-gameplay-tags
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinpbuckley/unreal-engine-skills.git /tmp/unreal-engine-skills
mkdir -p .claude/skills
cp -r /tmp/unreal-engine-skills/skills/core/ue-gameplay-tags .claude/skills/ue-gameplay-tags
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Ue Gameplay Tags in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Ue Gameplay Tags automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Ue Gameplay Tags nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Gameplay Tags

Gameplay Tags are hierarchical, interned FName labels — State.Stunned, Ability.Attack.Melee, Event.Reset — registered centrally so every system speaks the same vocabulary. They replace scattered enums/booleans/string IDs with a single, extensible, designer-editable taxonomy.

When to use this skill

  • Modeling states/categories/flags ("is stunned", "fire damage type", "ability = dash").
  • Replacing brittle enums/bools/string IDs with extensible, queryable labels.
  • Interfacing with tag-driven systems (GAS, behavior trees, animation, UI).
  • Granting, blocking, or querying behavior based on a set of active tags on an actor.
  • Building data-driven activation conditions that designers can edit without recompiling.

Mental model

  • A tag is a dot-separated hierarchy: Ability.Attack.Melee is a child of Ability.Attack.
  • Tags are interned — comparison is a fast FName equality check, not a string compare.
  • Tags are registered once (at module load for native; at ini/DataTable load for config) before gameplay begins. You cannot create arbitrary runtime tags.
  • FGameplayTagContainer stores a set of tags an actor currently has; it also caches parent tags for fast hierarchy-aware queries.
  • FGameplayTagQuery encodes a logical expression (any/all/none of a tag set, composed recursively) as an opaque byte stream editable in the Details panel.

Module dependency: add "GameplayTags" to your Build.cs PublicDependencyModuleNames.

Defining tags

Three approaches (you can mix):

1. Native C++ tags — compile-time safe, share across modules, register at module load:

cpp
// MyTags.h  (any public header)
#pragma once
#include "NativeGameplayTags.h"

UE_DECLARE_GAMEPLAY_TAG_EXTERN(TAG_State_Stunned)
UE_DECLARE_GAMEPLAY_TAG_EXTERN(TAG_Damage_Fire)
cpp
// MyTags.cpp
#include "MyTags.h"

// No comment variant (tag string must match your ini/design taxonomy):
UE_DEFINE_GAMEPLAY_TAG(TAG_State_Stunned,  "State.Stunned")

// With an editor-visible tooltip comment:
UE_DEFINE_GAMEPLAY_TAG_COMMENT(TAG_Damage_Fire, "Damage.Fire", "Applied by fire sources")
cpp
// File-private tag (no header declaration needed):
UE_DEFINE_GAMEPLAY_TAG_STATIC(TAG_LocalOnly, "Debug.LocalOnly")

Use native tags for every tag your C++ references directly — no string lookup at call sites and a compile error if you mistype the variable name.

2. Config/editor tags — added in Project Settings → GameplayTags (written to Config/DefaultGameplayTags.ini) or to Config/Tags/*.ini for per-team organisation. Request at runtime by name:

cpp
// Prefer caching this result — RequestGameplayTag does a map lookup.
FGameplayTag FireTag = FGameplayTag::RequestGameplayTag(FName("Damage.Fire"));
// Pass false as second arg to suppress the ensure() if the tag might not exist.
FGameplayTag MaybeTag = FGameplayTag::RequestGameplayTag(FName("Debug.Foo"), false);

3. DataTable tags — a UDataTable with row type FGameplayTagTableRow listed in Project Settings → Gameplay Tag Table List. Useful for importing bulk tag sets from CSV.

Container operations

cpp
FGameplayTagContainer ActiveTags;   // e.g. an actor's current states

ActiveTags.AddTag(TAG_State_Stunned);
ActiveTags.RemoveTag(TAG_State_Stunned);
ActiveTags.AppendTags(OtherContainer);  // union
ActiveTags.Reset();

// Hierarchy-aware queries (child satisfies parent check):
bool bStunned    = ActiveTags.HasTag(TAG_State_Stunned);   // exact or ancestor match
bool bExact      = ActiveTags.HasTagExact(TAG_State_Stunned);
bool bAny        = ActiveTags.HasAny(RequiredAny);
bool bAll        = ActiveTags.HasAll(RequiredAll);
bool bAnyExact   = ActiveTags.HasAnyExact(RequiredAny);
bool bAllExact   = ActiveTags.HasAllExact(RequiredAll);

Hierarchy matters: HasTag(Ability.Attack) returns true if the container holds Ability.Attack.Melee. Prefer *Exact variants when you need strict equality. HasAll with an empty container returns true (vacuous truth — no tags are missing).

Single-tag matching

cpp
FGameplayTag Melee = TAG_Ability_Attack_Melee.GetTag();   // via FNativeGameplayTag
FGameplayTag Attack = FGameplayTag::RequestGameplayTag(FName("Ability.Attack"));

Melee.MatchesTag(Attack);         // true  — Melee is a child of Attack
Attack.MatchesTag(Melee);         // false — Attack is NOT a child of Melee
Melee.MatchesTagExact(Attack);    // false — not the same tag
Melee.MatchesAny(SomeContainer);  // true if container has Melee or any parent of Melee

Tag queries (data-driven conditions)

FGameplayTagQuery composes conditions that designers can author in the Details panel without recompiling. Build one in code when needed:

cpp
// Match actors that have State.Stunned but NOT State.Immune:
FGameplayTagQuery Q = FGameplayTagQuery::BuildQuery(
    FGameplayTagQueryExpression()
    .AllExprMatch()
    .AddExpr(FGameplayTagQueryExpression().AnyTagsMatch().AddTag(TAG_State_Stunned))
    .AddExpr(FGameplayTagQueryExpression().NoTagsMatch() .AddTag(TAG_State_Immune))
);

if (Q.Matches(ActorTags)) { /* apply stun effect */ }

Shortcut factory functions for simple cases:

cpp
FGameplayTagQuery QAny = FGameplayTagQuery::MakeQuery_MatchAnyTags(SomeContainer);
FGameplayTagQuery QAll = FGameplayTagQuery::MakeQuery_MatchAllTags(SomeContainer);
FGameplayTagQuery QNone= FGameplayTagQuery::MakeQuery_MatchNoTags(SomeContainer);

IGameplayTagAssetInterface

Implement this interface on any actor or object that owns tags, so other systems can retrieve tags without casting:

cpp
// MyCharacter.h
#include "GameplayTagAssetInterface.h"

UCLASS()
class AMyCharacter : public ACharacter, public IGameplayTagAssetInterface
{
    GENERATED_BODY()
public:
    virtual void GetOwnedGameplayTags(FGameplayTagContainer& OutTags) const override
    {
        OutTags.AppendTags(ActiveTags);
    }

private:
    UPROPERTY(EditAnywhere, Category="Tags")
    FGameplayTagContainer ActiveTags;
};

IGameplayTagAssetInterface also provides default implementations of HasMatchingGameplayTag, HasAllMatchingGameplayTags, and HasAnyMatchingGameplayTags that call GetOwnedGameplayTags — override only if you need custom logic.

Exposing tags to Blueprints and the editor

cpp
// Tag picker in Details panel:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Tags")
FGameplayTag DamageType;

// Container picker — holds multiple tags:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Tags")
FGameplayTagContainer GrantedTags;

// Restrict the picker to a subtree with the meta specifier:
UPROPERTY(EditAnywhere, meta=(Categories="Damage"))
FGameplayTag SpecificDamageType;

// Query editor widget:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Tags")
FGameplayTagQuery ActivationRequirements;

FGameplayTag, FGameplayTagContainer, and FGameplayTagQuery are all BlueprintType and show custom editor widgets in Details panels.

When to use tags vs. enums

SituationRecommendation
Fixed, small, mutually-exclusive set switched in C++enum class
Open-ended, hierarchical, designer-extensible labelsGameplay tags
"An object has a set of states at once"Tag container
Activation requirements editable without recompileFGameplayTagQuery

Gotchas

  • Typo in RequestGameplayTag for an unregistered tag → warns and returns invalid tag (the second arg controls whether it fires an ensure). Prefer native tags.
  • HasTag vs HasTagExact — hierarchy expansion causes false positives when you want exact matches and false negatives when you forget it exists.
  • HasAll on empty container returns true — intended (vacuous truth), but surprising; guard with !Container.IsEmpty() when needed.
  • Forgot "GameplayTags" in Build.cs → unresolved external symbols.
  • Registering native tags too late — UE_DEFINE_GAMEPLAY_TAG registers at module startup; never define inside a function or after the tag table is locked.
  • Comparing Tag.ToString() instead of the tag struct — always compare FGameplayTag values directly or use matching functions.
  • UE_DEFINE_GAMEPLAY_TAG in a header — the static_assert in the macro rejects this at compile time; define must be in a .cpp file.
  • GetSingleTagContainer deprecated in 5.4 — use FGameplayTag::GetSingleTagContainer() (member) or FindTagNode on the manager instead.

Version notes

  • UE_DEFINE_GAMEPLAY_TAG_STATIC (file-private tag) and the UE_DEFINE_GAMEPLAY_TAG_COMMENT (with developer tooltip) forms were both present in UE5.0+; stable in 5.8.
  • GetSingleTagContainer(FGameplayTag) on UGameplayTagsManager was deprecated in 5.4; the member FGameplayTag::GetSingleTagContainer() is the replacement.
  • FGameplayTagQuery::MakeQuery_ExactMatchAnyTags / MakeQuery_ExactMatchAllTags added to allow exact-match factory queries without building the expression tree manually.
  • The ClearInvalidTags setting on UGameplayTagsSettings was deprecated in 5.5.

Cross-references

  • ue-gameplay-ability-system — GAS uses tags heavily: ability activation requirements, blocking/cancelling tags, FGameplayEffectQuery, Gameplay Cue tags, and FGameplayTagResponseTable. The two skills are companion references.

References & source material

Engine source (UE 5.8, Engine/Source/Runtime/GameplayTags/):

  • Classes/GameplayTagContainer.h — FGameplayTag:41, RequestGameplayTag:57, MatchesTag:91, MatchesTagExact:100, MatchesAny:126, GetSingleTagContainer:144; FGameplayTagContainer:247, HasTag:299, HasTagExact:316, HasAny:333, HasAnyExact:356, HasAll:379, HasAllExact:402, AddTag:494, RemoveTag:520, AppendTags:472, MatchesQuery:464; FGameplayTagQuery:737, Matches:803, BuildQuery:815, MakeQuery_MatchAnyTags:854, MakeQuery_MatchAllTags:855, MakeQuery_MatchNoTags:856; FGameplayTagQueryExpression:865.
  • Classes/GameplayTagsManager.h — UGameplayTagsManager:336, Get():344, RequestGameplayTag:375, RequestGameplayTagContainer:365, AddNativeGameplayTag:403, RequestGameplayTagParents:446, RequestGameplayTagChildren:467, DoneAddingNativeTags:412.
  • Public/NativeGameplayTags.h — UE_DECLARE_GAMEPLAY_TAG_EXTERN:31, UE_DEFINE_GAMEPLAY_TAG_COMMENT:36, UE_DEFINE_GAMEPLAY_TAG:41, UE_DEFINE_GAMEPLAY_TAG_STATIC:46; FNativeGameplayTag:58.
  • Classes/GameplayTagAssetInterface.h — IGameplayTagAssetInterface:19, GetOwnedGameplayTags:28, HasMatchingGameplayTag:38, HasAllMatchingGameplayTags:48, HasAnyMatchingGameplayTags:58.
  • Classes/GameplayTagsSettings.h — UGameplayTagsSettings:103, FastReplication:129, GameplayTagTableList:145.

Official docs (UE 5.8):

Deep-dive references in this skill:

  • references/native-tags.md — native tag macros, module registration timing, multi-module sharing, and the FNativeGameplayTag lifetime.
  • references/containers-and-queries.md — container internals (explicit vs. parent tag arrays), query expression tree, net serialization, and performance guidance.
  • references/tag-driven-patterns.md — tag-driven gameplay patterns: state machines, effect gating, ability gating (GAS integration), animation, and config/ini organisation.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Ue Gameplay Tags?

Use Gameplay Tags in Unreal C++ — hierarchical FName-based labels (FGameplayTag, FGameplayTagContainer), native tag declaration and definition (UE_DECLARE_GAMEPLAY_TAG_EXTERN / UE_DEFINE_GAMEPLAY_TAG / UE_DEFINE_GAMEPLAY_TAG_COMMENT / UE_DEFINE_GAMEPLAY_TAG_STATIC), tag registration via UGameplayTagsManager, runtime lookup with RequestGameplayTag, container operations (AddTag, RemoveTag, HasTag, HasTagExact, HasAny, HasAll), single-tag matching (MatchesTag, MatchesTagExact, MatchesAny), data-driven conditions with FGameplayTagQuery, the IGameplayTagAssetInterface, and config via DefaultGame...

Warum Ue Gameplay Tags in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Ue Gameplay Tags besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Ue Gameplay Tags in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-gameplay-tags ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Ue Gameplay Tags nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Ue Gameplay Tags verwenden?

So viele Sie möchten. In TypingMind können Sie Ue Gameplay Tags mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Ue Gameplay Tags kostenlos?

Der Skill wird von kevinpbuckley auf GitHub veröffentlicht. Prüfen Sie im Repository, ob dort Lizenzbedingungen angegeben sind. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇