Logo von Unreal

Unreal

Community
Lynricsy
unreal

Guides Unreal Engine 5 gameplay in C++ and Blueprints: reflection, actors and replication. Use when editing .h/.cpp with UCLASS or GENERATED_BODY, a .Build.cs or .uproject, a UObject is garbage-collected unexpectedly, a property fails to replicate, or the task names GAS, Enhanced Input, UMG, Lumen, Nanite or Niagara.

Übersicht

HerausgeberLynricsy
RepositoryHyperSkills
Skill-Nameunreal
Sterne
26
Forks
0
Mitgelieferte Dateien
23
LizenzMIT
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: 23

    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 Lynricsy auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Unreal 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/Lynricsy/HyperSkills/tree/main/skills/unreal
  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/Lynricsy/HyperSkills.git /tmp/HyperSkills
mkdir -p .claude/skills
cp -r /tmp/HyperSkills/skills/unreal .claude/skills/unreal
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Unreal 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 Unreal 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 Unreal 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.

unreal

Scope

Covers Unreal Engine 5 game and gameplay development: the UObject reflection system (UCLASS/UPROPERTY/UFUNCTION/USTRUCT) and the garbage collector that depends on it, pointer and ownership types, the Gameplay Framework class roles, actor and component lifecycle and ticking, subsystems, Blueprint and C++ division of labour, Enhanced Input, network authority and replication, the Gameplay Ability System, rendering with Lumen and Nanite, Niagara, UMG and Slate, Chaos physics, modules and .Build.cs, Live Coding, cooking, packaging and release, and the Automation Test framework.

Targets UE 5.8 — the version the official documentation currently ships — and marks every rule that only holds from a specific release. Rules without a version gate have held across UE 5.x.

Not covered: the general C++ language, the standard library, CMake, and ownership questions in engine-free C++ code. Use the cpp skill instead of reaching for an engine idiom. Unity is the unity skill and Godot is the godot skill; this skill never answers for them and cross-engine comparison stays to one sentence where it is unavoidable. Game UI implementation is here, but visual design principles — hierarchy, typography, colour, spacing — use the frontend-design skill. Unreal's own test frameworks are here; test-first methodology uses the test-driven-development skill and browser end-to-end testing uses the web-testing skill.

Paths below are relative to this skill's directory.

Read first

references/unreal-scripting.md before writing or reviewing any .h under Source/. The reflection macros are not annotations: they are the only channel through which the garbage collector, the serializer, the editor and the network see your data. A member the reflection system cannot see is a dangling pointer with a delay fuse, and the compiler will not say a word.

Core rules

  1. A UObject stays alive only while something reachable from the root set holds it through a reflected reference — a UPROPERTY, or a UObject pointer inside an Unreal container. A raw UObject* member without UPROPERTY is invisible to the collector and to the engine's automatic null-out, so it becomes a pointer into freed memory. [official]
  2. Automatic null-out is narrower than it sounds: destroying an AActor or UActorComponent nulls the references the reflection system can see. That is what makes null checks meaningful — and what makes an unreflected pointer a silent use-after-free. [official]
  3. Use UPROPERTY() TObjectPtr<T> for owned UObject members (UE5). TObjectPtr is only GC-safe when it is a UPROPERTY, and it is what enables the GC write barrier that incremental garbage-collection marking needs plus cook-time dependency tracking. Raw UPROPERTY pointers still work and buy none of that. [official]
  4. Never dereference a UObject through a TObjectPtr from a worker thread unless the object is already rooted. The documented pattern is a TWeakObjectPtr plus TWeakObjectPtr::Pin(), which yields a TStrongObjectPtr that holds the object for the duration of the access. [official]
  5. TStrongObjectPtr does not support UPROPERTY, is expensive to create and destroy, and is always a strong reference — so it belongs in non-UObject owners only. Inside a UObject it produces cycles the collector cannot break; a TObjectPtr self-reference does not. [official]
  6. A UObject is never deleted and never wrapped in an Unreal or standard shared pointer. Actors are removed with Destroy(), other objects with MarkAsGarbage(), and the collector owns destruction. A ref-counted wrapper's count is not a reflected reference. [official]
  7. AddToRoot() pins an object in the root set permanently. Without a paired RemoveFromRoot() it is a leak for the life of the process, and it keeps everything the object references alive with it. [official]
  8. GENERATED_BODY() goes at the very beginning of the class body, and the generated header must be included in the class header. Get either wrong and Unreal Header Tool fails before the compiler ever runs. [official]
  9. Class prefixes are part of the contract, not a style: A for actor-derived spawnable classes, U for the rest of the UObject tree, F for plain structs, E for enums, I for interfaces, T for templates, S for Slate widgets. [official]
  10. Transient means never saved and zero-filled at load. Combining it with EditAnywhere throws away every value a designer sets, with no warning anywhere. [official]
  11. Marking a property Replicated or ReplicatedUsing is half a contract. The property must also be registered in GetLifetimeReplicatedProps (DOREPLIFETIME, or DOREPLIFETIME_CONDITION with a condition), and the owning actor needs bReplicates while a replicating component needs SetIsReplicatedByDefault in its constructor or SetIsReplicated at runtime. Miss any one and the value never leaves the server. [official]
  12. Replicated state changes on the authority only. A client write is local, gets overwritten by the next update from the server, and — when it drives gameplay — is a cheat surface. Hand-calling an OnRep_ function fabricates a replication event the server never sent. [official]
  13. RPCs are unreliable by default and reliable ones cost bandwidth, so cosmetic events stay unreliable. A reliable RPC bound to player input can be spammed until the reliable queue overflows, which drops the connection. [official]
  14. A Server RPC must be called from a client that owns the actor, and a NetMulticast RPC executes on the server plus every client the actor is currently relevant for — a client that calls one only runs it locally. Ownership, not the function name, decides where a call lands. [official]
  15. A Server RPC that takes client-supplied values gets WithValidation and a _Validate function: passing runs the implementation, failing disconnects the caller. That is the whole point of a trust-and-verify boundary. [official]
  16. A RepNotify fires only when the value changes unless the property is registered with DOREPLIFETIME_CONDITION_NOTIFY(..., REPNOTIFY_Always), and in Blueprint — unlike C++ — a Set node on a replicated property calls the RepNotify locally. Assuming C++ semantics in Blueprint, or Always semantics by default, produces state that is right on the wire and wrong on screen. [official]
  17. Ticking is a budget, not a default. Leave bCanEverTick false unless the work really is per-frame, use a minimum tick interval or a timer for anything that only needs a cadence, and put work that reads this frame's physics results in TG_PostPhysics — TG_PrePhysics sees physics data that is one frame old. [official]
  18. Enhanced Input resolves collisions by mapping-context priority: when two contexts map the same Input Action, the highest-priority context wins and the others are ignored. Adding a context without a priority plan produces input that works until the second context appears. [official]
  19. In the Gameplay Ability System, an Ability System Component does not replicate Abilities to all clients — only the Gameplay Attributes and Tags they affect — and Gameplay Cues are not reliably replicated, so a Cue is cosmetic feedback only. Gameplay Effects follow the component's replication mode: Full sends every effect to every client, Mixed only to the owner, Minimal to nobody, so a multiplayer ASC needs an explicit SetReplicationMode. Gameplay-relevant feedback goes through Ability Tasks. [official]
  20. Lumen ignores lights whose Mobility is Static, because static light contribution lives in lightmaps and is disabled when Lumen is on. A project upgraded from UE4 does not get Lumen enabled automatically, and Lumen's hardware ray tracing carries significant scene update cost past roughly 100,000 instances. [official]
  21. Nanite renders Opaque and Masked materials only — anything else is replaced by the default material with a log warning — does not support morph-target deformation, MSAA, forward rendering or VR stereo, and caps the scene at 16 million streamed-in instances. [official]
  22. Drive UI from events, not from Bindings or Tick; Unreal's own UMG guidance says so. Per-frame property bindings and per-frame text formatting pay layout and allocation costs on every frame for data that changes rarely. [official]
  23. Physics sub-stepping buys stability with CPU, and it changes callback timing: collision callbacks are delayed until the final sub-step, so one frame can deliver both an overlap and its matching end-overlap for the same pair. Logic that assumes one callback per frame breaks under sub-stepping, not under load. [official]
  24. Unreal Build Tool compiles only the modules in your project's dependency chain, so a symbol from an unlisted module is an unresolved external at link time. Public dependency means "used in this module's public headers" and propagates to dependents; private is preferred because it cuts compile times. Regenerate project files after editing a .Build.cs. [official]
  25. The Automation Test framework depends on engine systems and is explicitly not the tool for pure unit tests — that is Low-Level Tests. Tests may run out of order or in parallel across machines, so a test that assumes editor or game state is a flake by construction, and a Smoke test must finish inside one second. [official]

Workflows

implement

  • Read the .uproject (engine version, enabled plugins) and the target module's .Build.cs before writing code. Every rule above that names a module, plugin or engine version depends on those two files.
  • Place the type in the framework: rules and spawn classes on the GameMode, session state on GameState, per-player state on PlayerState, intent on the PlayerController, the body on the Pawn or Character, reusable behaviour in a component, and process-wide services in a subsystem. See references/unreal-gameplay-framework.md.
  • Declare the header: UCLASS, GENERATED_BODY() first in the body, UPROPERTY() TObjectPtr<T> for owned objects, TWeakObjectPtr for observers, TSoftObjectPtr for assets that must not force a load (rules 1–10).
  • Decide the update model before writing Tick: event, delegate, timer, tick interval, or a subsystem that updates many actors once (rule 17).
  • For multiplayer, decide authority first, then the wire shape: replicated property with a RepNotify by default, RPC only for events (rules 11–16, and references/unreal-replication.md).
  • Add any new module dependency to the .Build.cs, private unless it appears in a public header, and regenerate project files (rule 24).
  • Gate: the module compiles and links from a clean build (not an incremental one), and the class, its properties and its Blueprint-exposed functions appear in the editor as intended.

review

  • Establish the engine version and enabled plugins first. A finding that depends on a version is not a finding until the version is known.
  • Walk the headers for reflection and ownership defects (rules 1–10). These are the ones that compile, pass review and crash later.
  • Walk the network boundary: where does each replicated write happen, is it registered, who owns the actor, and is every RPC's direction and reliability deliberate (rules 11–16)?
  • Walk the per-frame budget: every Tick, every per-frame query or trace, every per-frame UI update, every Cast in a loop (rules 17, 22).
  • Check that editor-only code is behind an editor module or WITH_EDITOR, and that no runtime module depends on an editor module (rule 24).
  • Report only findings with a reachable trigger and a concrete consequence. A text match is a lead, not a finding.
  • Gate: every finding carries path:line, the trigger, the consequence and a fix, and any engine claim names the version it holds for.

debug-a-crash

  • Classify first: a crash seconds after spawn or after a level load is the garbage collector reclaiming something nothing reflected was holding (rules 1–7); a crash on editor shutdown after a Live Coding patch is a stale pointer to a reinstanced object.
  • Search for the ownership hole rather than the crash site. The stack usually points at the collector or the allocator, not at the code that failed to hold the reference.
  • Check worker threads and lambdas for captured raw pointers and TObjectPtr access off the game thread (rule 4).
  • Reproduce with a forced collection rather than waiting: gc.CollectGarbageEveryFrame and obj gc make a lifetime bug deterministic.
  • Gate: the fix is an ownership change — a reflected reference, a weak pointer plus a validity check, or a lifetime moved to an owner — not a null check added at the crash site.

optimize-a-frame

  • Measure before changing anything: stat unit to split game / draw / RHI thread / GPU, then stat game, stat collision or an Unreal Insights capture on the scene that is slow. See references/unreal-build.md for the capture commands.
  • Attribute the cost to a thread. Game-thread cost is usually tick work, per-frame queries, or UI updates (rules 17, 22); GPU cost is usually Lumen and Nanite settings (rules 20, 21) or overdraw from VFX.
  • Remove the work, then reduce its frequency, then optimize what is left. Deleting a per-frame full-world query beats making it cheaper.
  • Changing when work runs changes its answer, so state the new timing explicitly: anything that reads physics results (traces, attachment, contact queries) must still run after the simulation, whether it now lives in TG_PostPhysics, on a timer, or in a subsystem update (rule 17). A rewrite that never says where the query happens has moved the correctness question, not answered it.
  • Re-measure on the same scene and the same build configuration, and report the before and after numbers rather than the change list.
  • Gate: a before/after measurement from the same capture type on the same scene, with the build configuration named.

ship-a-build

  • Package through the Project Launcher with a custom profile rather than by hand: Shipping build configuration, cook By the Book, and "create a release version" with a version number when the build is a release.
  • Keep the release's asset registry and pak from the Releases/<version>/<platform> directory; patches and DLC are diffed against them.
  • Confirm no runtime module depends on an editor module before packaging — this is the failure that only appears outside the editor (rule 24).
  • Run the automation suite for the packaged target, and treat a state-dependent test failure as a test defect until proven otherwise (rule 25).
  • Gate: the staged build launches from Saved/StagedBuilds/<platform> on the target platform, not just in the editor.

Topic router

TopicRead whenFile
Reflection, GC and ownershipWriting or reviewing any header; a crash after a collection; choosing a pointer typereferences/unreal-scripting.md
Gameplay FrameworkPlacing a class; GameMode/GameState/Controller/Pawn roles; lifecycle, ticking, timers, tagsreferences/unreal-gameplay-framework.md
Blueprint and C++Splitting work between designers and code; exposing C++ to Blueprint; Live Coding iterationreferences/unreal-blueprints.md
ReplicationAny multiplayer work: authority, properties, RPCs, components, bandwidthreferences/unreal-replication.md
Gameplay Ability SystemDeciding whether to adopt GAS; attributes, effects, cues, predictionreferences/unreal-gas.md
Enhanced InputBinding input; mapping contexts, triggers, modifiers, prioritiesreferences/unreal-input.md
Rendering and VFXLumen, Nanite, material and mesh limits, Niagara costreferences/unreal-rendering.md
UIUMG widgets, update strategy, Slate, per-frame UI costreferences/unreal-ui.md
PhysicsChaos, collision queries, sub-stepping, networked physicsreferences/unreal-physics.md
Modules, build and tests.Build.cs, plugins, Live Coding, cooking, packaging, automation tests, profilingreferences/unreal-build.md

Output format

For review and any other report on existing code, group findings by file, ordered by severity, with no preamble:

Source/ArenaGame/Public/ArenaPickup.h
  L20 blocking - raw UArenaPickupData* member with no UPROPERTY. The collector cannot see
       it and will not null it, so it dangles after the next collection - the "crashes a
       few seconds after spawn" signature.
       before: UArenaPickupData* CachedData = nullptr;
       after:  UPROPERTY() TObjectPtr<UArenaPickupData> CachedData;
  L29 important - EditAnywhere with Transient discards every value a designer sets, because
       Transient properties are never saved and are zero-filled at load.

Source/ArenaGame/Private/HealthComponent.cpp
  L20 blocking - Health is written on a machine with no authority; the next server update
       overwrites it and the value is a cheat surface in the meantime.
  ✓ OnRep_Health only reads replicated state, so it is safe on clients.

Severities: blocking (does not compile or link, crashes, corrupts state, breaks replication, or fails packaging), important (leaks, per-frame cost, lost designer data, cheatable authority, unreliable-when-it-matters), minor (naming, ordering, dead code). End with a one-line verdict: ship, ship after blocking fixes, or rework. Name the engine version every engine claim holds for, and list unrun checks separately from findings.

Environment

Unreal Engine is installed through the Epic Games Launcher or built from the source distribution, which requires a linked Epic account; the engine is tens of gigabytes and is frequently absent from CI and from review machines. Commands referenced by the workflows:

bash
# Windows paths shown; on Linux and macOS use RunUAT.sh and UnrealEditor
Engine/Build/BatchFiles/RunUAT.bat BuildCookRun -project=MyProject.uproject -clientconfig=Shipping
UnrealEditor-cmd.exe MyProject.uproject -run=cook -targetplatform=Windows
UnrealEditor-cmd.exe MyProject.uproject -ExecCmds="Automation RunTests Project.Functional" -unattended -nopause

In-editor: Ctrl+Alt+F11 triggers a Live Coding build, Window > Test Automation runs the automation suite once a testing plugin is enabled and the editor restarted, and stat unit / stat game / Unreal Insights measure a frame.

When the engine is not installed, say so and keep the reasoning at the level of the source and the official documentation. Never describe a build, a packaged run or a profiling capture that was not produced.

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 Unreal?

Guides Unreal Engine 5 gameplay in C++ and Blueprints: reflection, actors and replication. Use when editing .h/.cpp with UCLASS or GENERATED_BODY, a .Build.cs or .uproject, a UObject is garbage-collected unexpectedly, a property fails to replicate, or the task names GAS, Enhanced Input, UMG, Lumen, Nanite or Niagara.

Warum Unreal in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Unreal 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 Unreal in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/Lynricsy/HyperSkills/tree/main/skills/unreal 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 Unreal 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 Unreal verwenden?

So viele Sie möchten. In TypingMind können Sie Unreal 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 Unreal kostenlos?

Ja. Der Skill wird von Lynricsy auf GitHub unter der Lizenz MIT veröffentlicht. 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 👇