Logo: Unreal

Unreal

Communautéit
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.

Iwwersiicht

EditeurLynricsy
RepositoryHyperSkills
Skill-Nummunreal
Stären
26
Forks
0
Matgeliwwert Dateien
23
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 23 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Lynricsy huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Unreal an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Lynricsy/HyperSkills/tree/main/skills/unreal
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Unreal an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Unreal automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Unreal net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de 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.

Firwat Unreal op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Unreal besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Unreal an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Lynricsy/HyperSkills/tree/main/skills/unreal an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Unreal benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Unreal benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Unreal domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Unreal gratis?

Jo. Lynricsy huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇