Logo di 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.

Panoramica

Pubblicato daLynricsy
RepositoryHyperSkills
Nome della skillunreal
Stelle
26
Fork
0
File inclusi
23
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 23

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da Lynricsy su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Unreal in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Lynricsy/HyperSkills/tree/main/skills/unreal
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Unreal in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Unreal non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Unreal non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Unreal su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Unreal è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Unreal in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Lynricsy/HyperSkills/tree/main/skills/unreal. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Unreal?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Unreal?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Unreal: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Unreal è gratuita?

Sì. È pubblicata su GitHub da Lynricsy con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇