Ue Subsystems logo

Ue Subsystems

Community
kevinpbuckley
ue-subsystems

Implement engine-managed singletons scoped to a defined lifetime using Unreal's Subsystem framework — UEngineSubsystem, UGameInstanceSubsystem, UWorldSubsystem, UTickableWorldSubsystem, and ULocalPlayerSubsystem. Covers Initialize/Deinitialize lifecycle, ShouldCreateSubsystem for conditional creation, InitializeDependency for ordered init, and Blueprint/Python exposure. Use when building a service or manager (save system, ability registry, match service, analytics) and deciding whether to scope it to the process, game session, world, or local player — and when choosing between a subsystem, a manager actor, or a GameInstance override.

Overview

Publisherkevinpbuckley
Repositoryunreal-engine-skills
Skill nameue-subsystems
Stars
89
Forks
9
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by kevinpbuckley on GitHub. Read the source before you install it.

Installation

Install the Ue Subsystems AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-subsystems
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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-subsystems .claude/skills/ue-subsystems
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ue Subsystems in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ue Subsystems on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ue Subsystems is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Subsystems

A Subsystem is a UObject-derived singleton whose lifetime matches a specific engine construct (engine process, game instance, world, or local player). The engine creates it automatically when the owning object is created and destroys it when the owner is torn down — no manual instancing, no GC juggling, and Blueprint/Python exposure comes for free.

Subsystems replace hand-rolled static singletons and "manager actors". They are the canonical pattern for cross-cutting services in modern Unreal C++.

When to use this skill

  • You need a service or manager class (inventory, save system, match lifecycle, analytics, ability registry, audio coordinator) and want it created and cleaned up automatically.
  • You need to choose between a UGameInstanceSubsystem, UWorldSubsystem, or a manager actor.
  • You are building a plugin and want the plugin's systems initialized without burdening the game project with manual setup code.
  • You want Blueprint-callable game services without casting to game-specific classes.
  • You want per-local-player state that is split-screen-safe.

The five subsystem types (choose by lifetime)

Base classLifetimeCreated/owned byAccess
UEngineSubsystemEngine process; survives level loads and PIE sessionsUEngine / GEngineGEngine->GetEngineSubsystem<T>()
UGameInstanceSubsystemGame session; persists across level loadsUGameInstanceGameInstance->GetSubsystem<T>()
UWorldSubsystemOne UWorld; reset on every level change or seamless travelUWorldWorld->GetSubsystem<T>()
UTickableWorldSubsystemSame as UWorldSubsystem plus automatic per-frame TickUWorldWorld->GetSubsystem<T>()
ULocalPlayerSubsystemOne local player; one instance per split-screen slotULocalPlayerLocalPlayer->GetSubsystem<T>()

UEditorSubsystem (editor-only module) follows the same pattern for editor tooling; it is not covered here. See references/subsystem-types.md for full per-type detail.

Authoring a subsystem

A minimal UGameInstanceSubsystem:

cpp
// MySaveSubsystem.h
#pragma once
#include "Subsystems/GameInstanceSubsystem.h"
#include "MySaveSubsystem.generated.h"

UCLASS()
class MYGAME_API UMySaveSubsystem : public UGameInstanceSubsystem
{
    GENERATED_BODY()
public:
    // Called after UGameInstance is initialized. Collection is used to declare dependencies.
    virtual void Initialize(FSubsystemCollectionBase& Collection) override;
    virtual void Deinitialize() override;

    // Returns false to skip creation entirely (e.g. on dedicated server).
    virtual bool ShouldCreateSubsystem(UObject* Outer) const override;

    UFUNCTION(BlueprintCallable, Category = "Save")
    void SaveProfile();

private:
    UPROPERTY()
    TObjectPtr<USaveGame> CurrentSave;
};
cpp
// MySaveSubsystem.cpp
#include "MySaveSubsystem.h"
#include "AnotherSubsystem.h"   // dependency example

void UMySaveSubsystem::Initialize(FSubsystemCollectionBase& Collection)
{
    // Ensure UAnotherSubsystem is initialized before this one.
    Collection.InitializeDependency<UAnotherSubsystem>();
    Super::Initialize(Collection);
    // Perform initialization — world is not guaranteed here for game-instance scope.
}

void UMySaveSubsystem::Deinitialize()
{
    // Clear timers, delegates, file handles, etc.
    Super::Deinitialize();
}

bool UMySaveSubsystem::ShouldCreateSubsystem(UObject* Outer) const
{
    // Skip on dedicated server builds:
    if (!Super::ShouldCreateSubsystem(Outer)) { return false; }
    return !IsRunningDedicatedServer();
}

Key rules:

  • Initialize/Deinitialize are the lifecycle hooks — not BeginPlay/EndPlay.
  • The subsystem is a UObject; use UPROPERTY() on all UObject* members.
  • ShouldCreateSubsystem is called on the CDO before any instance is created; keep it cheap.
  • Call Super::Initialize(Collection) first, Super::Deinitialize() last.

Accessing a subsystem

cpp
// From any actor — GameInstance subsystem:
if (UGameInstance* GI = GetGameInstance())
{
    if (UMySaveSubsystem* Save = GI->GetSubsystem<UMySaveSubsystem>())
        Save->SaveProfile();
}

// Static helper — safe even if GI is null:
UMySaveSubsystem* Save = UGameInstance::GetSubsystem<UMySaveSubsystem>(GetGameInstance());

// World subsystem (returns null if ShouldCreateSubsystem returned false):
UMyWorldSub* WS = GetWorld()->GetSubsystem<UMyWorldSub>();

// Checked accessor (asserts on null; prefer when null is a bug):
UMyWorldSub& WS = *GetWorld()->GetSubsystemChecked<UMyWorldSub>();

// Local player subsystem from a PlayerController:
UMyLPSub* S = ULocalPlayer::GetSubsystemFromController<UMyLPSub>(this);

In Blueprints, subsystems appear as typed auto-context getter nodes — no casting required. The node is available for any subsystem that is a UCLASS() (even without BlueprintType), as long as the function is marked BlueprintCallable. USubsystemBlueprintLibrary provides the static getters that Blueprint graph searches surface.

Dependency ordering

cpp
void UMySubsystem::Initialize(FSubsystemCollectionBase& Collection)
{
    // Template form — preferred, type-safe:
    Collection.InitializeDependency<UOtherSubsystem>();
    Super::Initialize(Collection);
}

InitializeDependency only works within the same collection (same owner). You cannot declare a UWorldSubsystem dependency on a UGameInstanceSubsystem — they live in separate collections. See references/lifecycle-and-access.md for the full initialization sequence.

Ticking — UTickableWorldSubsystem

When per-frame work is needed in a world-scoped subsystem, inherit from UTickableWorldSubsystem instead of UWorldSubsystem:

cpp
UCLASS()
class MYGAME_API UMyTickingSystem : public UTickableWorldSubsystem
{
    GENERATED_BODY()
public:
    virtual void Initialize(FSubsystemCollectionBase& Collection) override;
    virtual void Deinitialize() override;
    virtual void Tick(float DeltaTime) override;

    // Required pure virtual — used by the stats system:
    virtual TStatId GetStatId() const override
    {
        RETURN_QUICK_DECLARE_CYCLE_STAT(UMyTickingSystem, STATGROUP_Tickables);
    }
};

Rules:

  • Forward Initialize/Deinitialize to Super to enable/disable ticking correctly.
  • GetStatId is a pure virtual — failing to implement it prevents compilation.
  • Prefer timers (ue-timers-and-async) over ticking when the work is infrequent.

Choosing subsystem vs alternatives

NeedRecommendation
Stateless utility functionsFree functions or a BlueprintFunctionLibrary
Replicated state (HP, score)AGameState, APlayerState (subsystems do not replicate)
Single placed world object (obstacle spawner)Manager actor placed in the level
Per-actor behavior/dataComponent on the actor
Cross-level session stateUGameInstanceSubsystem
Per-level state, reset on travelUWorldSubsystem
Per-player UI/input stateULocalPlayerSubsystem
Plugin initializationUEngineSubsystem or UGameInstanceSubsystem

Subsystems do not replicate. Keep authoritative networked state on GameState, PlayerState, or replicated actors. Use subsystems on the local side for coordination, caching, and UI logic. See ue-networking-and-replication and ue-gameplay-framework.

Gotchas

  • No world access in GameInstance/Engine Initialize — GetWorld() on a UGameInstanceSubsystem returns null during Initialize; use a UWorldSubsystem or defer world-dependent work to OnWorldBeginPlay (world subsystems) or a timer.
  • Wrong scope — session-persistent data in a UWorldSubsystem is wiped on level change; per-level data in a UGameInstanceSubsystem accumulates across travels.
  • ShouldCreateSubsystem returns false, but caller doesn't null-check — GetSubsystem<T> returns nullptr when the subsystem was skipped; always null-check in the caller.
  • Dependency across collections — InitializeDependency only works within the same collection; cross-scope coordination needs an accessor call in Initialize.
  • Forgetting Super in Initialize/Deinitialize — for UTickableWorldSubsystem, Super::Initialize starts ticking and Super::Deinitialize stops it; skipping them breaks the tick lifecycle.
  • Heavy work in Initialize blocking startup — defer expensive loading via FStreamableManager or AsyncTask (see ue-timers-and-async).
  • Circular dependencies — InitializeDependency detects simple cycles at runtime and asserts; avoid mutual dependencies by splitting shared state into a third subsystem.

References & source material

Engine source (UE 5.8, Engine/Source/Runtime/Engine/Public/Subsystems/):

  • Subsystem.h — USubsystem:44 — ShouldCreateSubsystem:56, Initialize:59, Deinitialize:62. UDynamicSubsystem:80 (base for UEngineSubsystem).
  • SubsystemCollection.h — FSubsystemCollectionBase:16, InitializeDependency:35, ActivateExternalSubsystem:50, DeactivateExternalSubsystem:55.
  • GameInstanceSubsystem.h — UGameInstanceSubsystem:16 (Within=GameInstance), GetGameInstance():25.
  • WorldSubsystem.h — UWorldSubsystem:16 — PostInitialize:37, OnWorldBeginPlay:43, DoesSupportWorldType:66. UTickableWorldSubsystem:80 — GetStatId pure virtual:92.
  • LocalPlayerSubsystem.h — ULocalPlayerSubsystem:17 (Within=LocalPlayer), PlayerControllerChanged:35.
  • EngineSubsystem.h — UEngineSubsystem:20 (derives from UDynamicSubsystem).
  • SubsystemBlueprintLibrary.h — Blueprint-internal getters for all subsystem types:15.

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

  • GameInstance.h — GetSubsystem<T>():440, static GetSubsystem(GameInstance*):450.
  • World.h — GetSubsystem<T>():4312, GetSubsystemChecked<T>():4321, static GetSubsystem(World*):4331.
  • LocalPlayer.h — GetSubsystem<T>():365, GetSubsystemFromController<T>():389.
  • Engine.h — GetEngineSubsystem<T>():3847, EngineSubsystemCollection:3877.

Official docs (UE 5.8):

Deep-dive references in this skill:

  • references/subsystem-types.md — per-type detail: creation timing, valid GetWorld() availability, DoesSupportWorldType, dynamic subsystems, UEditorSubsystem.
  • references/lifecycle-and-access.md — full Initialize/Deinitialize sequence, dependency ordering, accessing subsystems from C++ and Blueprints, collection internals.
  • references/choosing-a-subsystem.md — decision guide: subsystem vs manager actor vs GameInstance override vs component; networking constraints; plugin patterns.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ue Subsystems AI skill do?

Implement engine-managed singletons scoped to a defined lifetime using Unreal's Subsystem framework — UEngineSubsystem, UGameInstanceSubsystem, UWorldSubsystem, UTickableWorldSubsystem, and ULocalPlayerSubsystem. Covers Initialize/Deinitialize lifecycle, ShouldCreateSubsystem for conditional creation, InitializeDependency for ordered init, and Blueprint/Python exposure. Use when building a service or manager (save system, ability registry, match service, analytics) and deciding whether to scope it to the process, game session, world, or local player — and when choosing between a subsystem,...

Why use Ue Subsystems on TypingMind?

Because you install it once and use it with any model. Ue Subsystems is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ue Subsystems in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-subsystems. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ue Subsystems?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ue Subsystems?

As many as you like. As long as a model supports skills, you can use Ue Subsystems with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ue Subsystems AI skill free?

It is published on GitHub by kevinpbuckley. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇