Writing a Feature or Kit
Write a Feature or Kit with a .mfeature or .mkit manifest, runtime and editor C++ modules, content and shaders, enable it per project, and register through the engine's seams.
Features and Kits are the two kinds of add-on package. Each is a folder with a manifest and, usually, C++ modules and an Assets/ folder. When a project enables one, its content mounts into the virtual filesystem, its modules load and register their types, and its editor module (if it has one) extends the editor.
- A Feature is an engine-level capability: a platform SDK, an importer, an editor utility, online services, replay, or one of the built-in feature modules. Its manifest is
<Name>.mfeature. - A Kit is a gameplay package built on top: combat, survival, vehicles, smart props. Its manifest is
<Name>.mkit.
The extension is what says which kind a package is; there is no kind key. A Kit may use Features, never the reverse: a Feature that lists a Kit in dependencies is blocked, and the build refuses the same edge. Pick a Feature when the code is engine plumbing that any game could want, and a Kit when it is gameplay a game builds on. A Kit may depend on other Kits.
The engine ships 14 Features in Engine/Features/ and 10 Kits in Engine/Kits/, opt-in except Editor Utility Scripting, which is editor-only and on by default, and lists its feature modules beside them. The Features & Kits window lists both kinds on two tabs; see Features & Kits window.
Layout
A project's Feature or Kit keeps its module under Code/:
<Project>/Features/MyFeature/ (a Kit: <Project>/Kits/MyKit/ with MyKit.mkit)
MyFeature.mfeature JSON manifest
Code/MyFeature.Build.cs the runtime module's rules
Code/Api/MyFeature/ reflected headers
Code/Impl/ sources
Code/ThirdParty/<Lib>/ a vendored library the Feature or Kit carries, optional
Assets/ assets, mounted at Features/MyFeature (Kits/MyKit for a Kit)
Config/ INI layers merged into the project's config, optional
Shaders/ HLSL, optionalA Feature or Kit that ships with the engine keeps its module at the folder root (Engine/Features/<Name>/<Name>.Build.cs, Api/, Impl/) instead of under Code/, and is loaded at engine start-up and read-only in the editor. A project's lives in <Project>/Features/<Name>/ or <Project>/Kits/<Name>/, is committed with the project and loads when the project opens. The folder must agree with the extension: Features/ holds only .mfeature and Kits/ only .mkit; an entry in the wrong folder is skipped with an error in the log. New Feature… and New Kit… in the Features & Kits window create this layout.
A project module is named <Name>; the MowoEngine. prefix belongs to engine modules, which run as MowoEngine.Features.<Name> and MowoEngine.Kits.<Name>.
The manifest
{
"fileVersion": 1,
"name": "MyFeature",
"friendlyName": "My Feature or Kit",
"version": "1.0.0",
"description": "What the Feature or Kit adds, in one or two sentences.",
"author": "Studio",
"category": "Gameplay",
"icon": "swords",
"enabledByDefault": false,
"content": true,
"engineVersion": "0.3",
"dependencies": [],
"modules": [
{ "name": "MyFeature", "type": "Runtime", "loadingPhase": "Default" },
{ "name": "MyFeatureEditor", "type": "Editor", "loadingPhase": "Default" }
]
}| Key | Meaning |
|---|---|
fileVersion | The manifest schema version, currently 1 |
name | The Feature or Kit's identity; one Feature or Kit per name |
content | true mounts the Feature or Kit's Assets/ folder |
enabledByDefault | Used when the project's Config/Features.ini says nothing; false when the key is absent |
engineVersion | The engine major.minor the Feature or Kit targets; another version blocks the Feature or Kit |
dependencies | Features and Kits that must be enabled and loadable first: a name, or an object with name, optional and version |
modules | The C++ modules to load: a name, or an object with name, type, loadingPhase, platforms and targets |
supportedPlatforms, supportedTargets | Where the Feature or Kit may be live; see Platforms and targets |
nativeDependencies | Gradle, manifest, CocoaPods and Swift package entries for Android and iOS; see Native dependencies |
capabilities | What the Feature or Kit needs the project to allow: network, filesystem, process, native-code, editor-scripting; see Trusting third-party Features and Kits |
category | One of the fixed categories below |
requiresOnline, server, dlc, beta, marketplaceUrl, docsUrl, supportUrl | Flags and links the Features & Kits window and packaging read |
The manifest is read against a schema, by the engine and by mbt alike. A key the schema does not know is a warning in the log; a value of the wrong type, or an unknown module type or loadingPhase, makes the Feature or Kit unreadable and it is skipped with the message. The categories are Gameplay, Animation, Audio, Rendering, World Building, Foliage, Networking, Online, Physics, UI, 2D, Content, Editor, Scripting, Developer Tools and Other.
Module types
A module's type decides which hosts load it:
| Type | Loaded by | Shipped in a package |
|---|---|---|
Runtime (the default) | every host | yes |
Editor | the editor only | no |
Uncooked | the editor and the cook (mbt cook, mbt package) | no |
ClientOnly | everything except a dedicated server | yes |
ServerOnly | a dedicated server only | yes |
Uncooked is the type for an importer: the editor loads it for the import dialog, and the cook host loads it to transcode source files such as .usd into the cooked asset, while no player or server ever carries it.
Loading phases
A module's loadingPhase says when in start-up it loads. Default is where engine Features and Kits have always loaded.
| Phase | Point in start-up |
|---|---|
PostConfigInit | After command-line variables and memory, before the window, the RHI and the virtual filesystem |
PreDefault | After the renderer and shaders are up, before the engine content mounts |
Default | Engine Features and Kits load, content mounts |
PostDefault | After the engine's subsystems are up |
PostEngineInit | After the engine finished initialising |
A dependency never loads in a later phase than the Feature or Kit that needs it: such a Feature or Kit is blocked, with the phases named in the reason. A Feature or Kit enabled after start-up loads the phases the engine already passed at once. FFeatureManager::AddLoadingPhaseListener registers a plain function that runs after a phase completes.
Platforms and targets
supportedPlatforms (win-x64, linux-x64, osx-arm64, android-arm64, ios-arm64) and supportedTargets (Game, Server, Editor) limit where the Feature or Kit may be live; an empty list means everywhere. A Feature or Kit outside its lists is blocked with the platform or target named, and packaging leaves it out. A module takes its own platforms and targets lists on top.
A project can also switch a Feature or Kit per platform: Config/<Platform>/<Platform>Features.ini has the same [Features] and [Kits] sections as Features.ini and wins over it when running or packaging for that platform.
Native dependencies
A Feature or Kit that wraps a native library declares what Android and iOS must pull in, in the manifest, instead of asking every game to edit the generated projects:
"nativeDependencies": {
"android": {
"gradle": ["com.acme:voice:2.1.0"],
"repositories": ["https://maven.acme.example/releases"],
"manifest": ["<uses-permission android:name=\"android.permission.RECORD_AUDIO\" />"],
"application": ["<meta-data android:name=\"acme.key\" android:value=\"k\" />"]
},
"ios": {
"pods": ["AcmeVoice", { "name": "Zlib", "version": "~> 1.2" }],
"spm": [{ "url": "https://github.com/acme/voice-swift", "version": "3.0.0", "product": "AcmeVoice" }]
}
}mbt package-android adds the gradle coordinates and repositories to the app's build.gradle, and the manifest and application elements inside the <manifest> and <application> of AndroidManifest.xml. mbt package-ios writes a Podfile and a SwiftPackageDependencies.txt next to the staged app. Only Features and Kits the project has enabled for that platform contribute; two of them asking for the same library produce one entry, and a malformed coordinate or element is a manifest error.
Trusting third-party Features and Kits
A Feature or Kit installed from outside the engine can say what it needs in capabilities. Declaring a capability grants nothing: the project decides, in Config/Features.ini:
[security]
signedOnly=true
[allowedCapabilities]
VoiceChat=network,processallowedCapabilities lists, per Feature or Kit, the capabilities the project accepts (* accepts all). With signedOnly=true, a Feature or Kit without a signing key (publicKey) is flagged. The Features & Kits window shows the findings in amber under the Feature or Kit's name, for example "This Feature or Kit uses 'process', which this project has not allowed". Features and Kits that ship with the engine are exempt, and findings never stop a Feature or Kit from loading, so a warning is something to review or to turn into a check in your own pipeline.
Enabling a Feature or Kit
Each project decides in Config/Features.ini, one section per kind:
[Features]
ScanHierarchy=True
[Kits]
Combat=TrueA name counts only under its own kind's section: a Kit listed under [Features] is ignored. The file wins over enabledByDefault. The editor's Features & Kits window writes it; see Editor. Content mounts and unmounts immediately. Enabling a code Feature or Kit loads its modules at once; disabling one that is already loaded takes effect after a restart, because unloading it would remove classes that live objects use.
Cooking, packaging and the monolithic link read the same file, so a disabled Feature or Kit ships neither its content nor its binaries.
Dependencies and versions
An enabled Feature or Kit does not load (no content, no modules) when a dependency is missing, disabled or blocked itself, when the dependencies form a cycle, or when its engineVersion names another engine major.minor. The Feature or Kit stays enabled, and its blocked reason appears in the log and the Features & Kits window:
Feature or Kit 'Survival' does not load: it requires Feature or Kit 'Combat', which is disabledModules load in dependency order: a Feature or Kit's modules load only after those of every Feature or Kit it depends on.
A dependency is a Feature or Kit name, or an object that adds a version range and an optional flag:
"dependencies": [
"Combat",
{ "name": "AINavigation", "version": ">=1.2 <2" },
{ "name": "SteamPlatform", "optional": true, "version": "^1" }
]A range is space- or comma-separated terms that must all hold: >=, >, <=, <, = (or none), ^ (same major) and ~ (same major.minor), each followed by a dotted version; a pre-release suffix is ignored. A required dependency whose installed version is outside the range blocks the Feature or Kit, and the reason names both versions. An optional dependency never blocks by being absent or disabled: when it is present and enabled it loads first, and only a version outside the range blocks. Mod manifests use the same dependency form.
Feature or Kit config
A Feature or Kit's Config/ folder holds INI files in the same dialect as the project's. For each config name (Engine, Game, Input, Scalability, or the Feature or Kit's own), the Feature or Kit may ship Base<Name>.ini, Default<Name>.ini and <Platform>/<Platform><Name>.ini. They are merged while the Feature or Kit is live, after the engine's layers and before the project's, so a Feature or Kit ships defaults for its console variables and for the [/Script/...] sections of its config classes, and the project's own Default<Name>.ini overrides them:
Engine/Config/Base<Name>.ini -> <Feature or Kit>/Config/*<Name>.ini -> <Project>/Config/Default<Name>.ini -> .Mowo/Saved/Config/...A Feature or Kit switched on after the project opened rebuilds the layers before its modules load, so its classes see their own defaults. Packages stage the layers of the Features and Kits they ship; editor-only files (names containing Editor) stay out.
Runtime modules
A Feature or Kit module is an ordinary module with its own .Build.cs, built by mbt like a game module:
public class MyFeature : ModuleRules
{
public MyFeature(ReadOnlyTargetRules Target) : base(Target)
{
PublicDependencyModuleNames.Add("EngineLoop");
PrivateIncludePaths.Add(EngineLoopIncludeDirectory);
CompilerFlags.Add("/FIstdafx.h");
bUseHeaderTool = true;
HeaderToolDirectories.Add("Api/MyFeature");
}
}The loader looks for the module binary in the engine's binaries folder first, then in the Feature or Kit's own Binaries/<platform>/ and Binaries/ folders (<platform> is the platform id, such as win-x64), so a Feature or Kit can ship prebuilt. A module whose binary has not been built is skipped with a log line, and the project still opens.
Build Features and Kits in the same configuration as the engine that loads them: the loader refuses a module built against another C++ runtime (a debug Feature or Kit in a dev editor, for example).
Extending the engine
Reflected types (MCLASS, MOWO_REFLECTED components) register themselves when the module loads; nothing else is needed for them to save, appear in the editor and show up in Visual Scripting.
Everything else goes through FEngineModularRegistry from the module's InitializeModule: FEngineModularRegistry
| Call | What it adds |
|---|---|
RegisterSceneSystem(FModularSceneSystem) | An ECS scene system with its tick order and the play modes it runs in |
RegisterAssetSerializer(factory) | An asset type; each host applies the registered serializers after its built-in ones |
RegisterStateFragment(...) | World state a Feature or Kit system owns that save games and level travel carry |
RegisterCharacterExtension(...) | Input bindings and an aim feed for a feature-owned character mode |
These add to the engine's built-in tables and never replace them. Descriptors cross the DLL boundary as plain function pointers, never std::function.
Online platform Features and Kits register an IOnlineService the same way; see Multiplayer.
Editor modules
The editor is an executable with no public headers, so a Feature or Kit cannot link into it. It links EditorFramework instead, the library that holds the editor's extension points. A module of type "Editor" that depends on it:
public class MyFeatureEditor : ModuleRules
{
public MyFeatureEditor(ReadOnlyTargetRules Target) : base(Target)
{
PrivateDependencyModuleNames.Add("Core");
PrivateDependencyModuleNames.Add("Miri");
PrivateDependencyModuleNames.Add("EditorFramework");
}
}Two registries are available:
FEditorDockPanelRegistryregisters dock panels. A panel appears under the Window menu and restores with the layout like a built-in one.FEditorDockPanelRegistryFEditorExtensionRegistryadds menu entries (File, Edit, Tools, Window, Build, Help; entries that name the sameGroupshare a submenu), toolbar buttons beside the play controls, Asset Browser asset actions (rows in an asset's context menu), Details customizations keyed by component type, and viewport modes.FEditorExtensionRegistry
#include <Miri/Framework/MiriDeclarativeSyntax.h>
#include <Miri/Widgets/MTextBlock.h>
#include <Core/FModuleManager.h>
#include <EditorFramework/EditorExtensionRegistry.h>
#include <EditorFramework/EditorPanelRegistry.h>
#include <utility>
MOWO_IMPLEMENT_MODULE_API_VERSION()
extern "C" MOWO_MODULE_EXPORT void InitializeModule() {
Mowo::FEditorDockPanelDesc panel;
panel.Kind = "MyTool";
panel.Title = "My Tool";
panel.Create = [](int32_t) {
Mowo::FEditorDockPanelInstance instance;
instance.Surface = MiriNew(Miri::MTextBlock).Text(Miri::CText::FromString("Hello from MyFeature"));
return instance;
};
Mowo::FEditorDockPanelRegistry::Get().Register(std::move(panel));
Mowo::FEditorMenuExtension entry;
entry.Id = "MyFeature.Run";
entry.Menu = Mowo::EEditorMenu::Tools;
entry.Label = "Run My Tool";
entry.Execute = []() {
};
Mowo::FEditorExtensionRegistry::Get().AddMenuEntry(std::move(entry));
}
extern "C" MOWO_MODULE_EXPORT void ShutdownModule() {
Mowo::FEditorExtensionRegistry::Get().RemoveMenuEntry("MyFeature.Run");
Mowo::FEditorDockPanelRegistry::Get().Unregister("MyTool");
}Remove in ShutdownModule everything you added in InitializeModule. A panel factory, a menu callback and every widget they built are code inside your DLL; an entry left behind is called or destroyed after that code is gone.
Settings pages, asset actions and new assets
A Feature or Kit with its own asset type or settings registers them with FEditorFeatureExtensions. Everything is plain data and plain function pointers, and the registry remembers which module added an entry and drops it when that module unloads. FEditorFeatureExtensions
| Call | What it adds |
|---|---|
AddSettingsPage | A page in Project Settings or Editor Preferences, under Features & Kits. Name an MCLASS with ConfigClass and the page lists its MPROPERTY(Config) fields and writes the project's Config/DefaultGame.ini, or give a Build function for a page of your own |
AddAssetAction | An entry in the Asset Browser's right-click menu for the asset extensions you list |
AddNewAssetEntry | An entry in the Asset Browser's New asset menu; the browser picks a unique name and calls your Create to write the file |
An importer needs none of this: register the translator with FImportTranslatorRegistry::Get().Register(...) and it is removed when the module unloads.
The module ABI check
Every module binary exports its ABI version with MOWO_IMPLEMENT_MODULE_API_VERSION() from Core/FModuleManager.h. Right after loading a library, FModuleManager compares it with the engine's MOWO_MODULE_API_VERSION and the C++ runtime the module was built against. A binary that exports another number, or none, is refused: the log names the module and says to rebuild it against this engine, its static registrations are removed, and the library is freed. FModuleManager::LoadModule
The check exists because descriptors such as FModularSceneSystem are copied with the engine's layout; a Feature or Kit built against an older layout would hand over a shorter struct. When you change such a boundary type in the engine, bump MOWO_MODULE_API_VERSION.
Unloading
When a project closes, its Feature or Kit modules unload. The world is torn down first, then each module's reflected classes are unregistered, a garbage collection frees objects whose code lives in the module, ShutdownModule runs, and the library is freed.
Before the library is freed, the engine sweeps every registry that might still point into it: scene systems, reflection, the modular registry, console commands, property-type handlers, EventBus subscriptions, timers and others. Most registrations record the module they came from automatically, so Feature or Kit code needs no extra step. FModuleManager::AddUnloadHandler lets your own registries join the sweep.
Shaders
A Feature or Kit keeps HLSL in Shaders/ and maps it to a virtual root in its .Build.cs:
AddShaderSourceDirectoryMapping("/Feature/MyFeature", "Shaders"); // a Kit maps "/Kit/MyKit"
ShaderDirectories.Add("Shaders/Private");
ShaderArchive = "MyFeatureShaders.meaf";Its shaders include engine headers as /Engine/Public/… and their own as /Feature/MyFeature/… (/Kit/MyKit/… for a Kit), and their compiled keys carry the Feature/MyFeature/ (or Kit/MyKit/) prefix, so a Feature or Kit cannot replace an engine shader. See Rendering.
Content and packaging
An enabled Feature or Kit's Assets/ mounts at Features/<Name> or Kits/<Name>, so its assets are referenced as Features/MyFeature/Materials/M_Plastic.mat or Kits/MyKit/Materials/M_Plastic.mat. Cooking and packaging put every enabled Feature or Kit's content into the game's content archive under the same prefix, so references resolve unchanged in a packaged game. A package lists the shipped manifests in Features.json, each entry carrying its kind, and stages their config under Config/Features/<Name>/ or Config/Kits/<Name>/. See Shipping.
Engine Features and Kits and feature modules
Engine systems such as AI and navigation, the Sequencer and destruction are feature modules. They build with the engine, but a project switches each one in Config/Features.ini exactly like a Feature or Kit, and the Features & Kits window lists them under Engine Features. A game loads, registers and packages only the ones its project enables; the editor registers all of them, because its asset editors open every asset type, and the switch decides what a standalone run, the packaged game and the server load. Play in the editor keeps every module registered.
| Feature module | Default | Needs |
|---|---|---|
AINavigation (AI and Navigation) | on | |
Narrative | on | AINavigation |
VoiceChat | off | |
Destruction, GeometryTools, PointCloud, Sequencer, LevelGen, PCG, GpuEcs | off | |
Accessibility (Automatic Subtitles, ONNX Runtime) | off | VoiceChat, Narrative |
AI and Navigation and Narrative are on because the templates place navigation agents, schedules, quests and music, and Combat depends on both. A Feature or Kit may name a feature module in dependencies (Combat does), and turning that module off blocks the Feature or Kit. What stays a Feature or Kit is what a game opts into on top: platform SDKs (SteamPlatform, DiscordPlatform, MowoOnlinePlatform), gameplay kits (Combat, Survival), SmartProps and ScanHierarchy. No engine module depends on a Feature or Kit. See Architecture.
[Features]
VoiceChat=True
Sequencer=True
AINavigation=FalseA module another enabled module links stays loaded by the operating system but does not register: Narrative links VoiceChat, so its library is mapped, yet with VoiceChat off no voice system, input action or setting exists. The package carries Config/Features.ini and stages only the enabled modules, so a monolithic game compiles in and registers exactly that set.
Mods
A mod is a third kind of folder, and neither a Feature nor a Kit: it is player content layered over a shipped game, with its own trust model. Its manifest is <Name>.mmod, read by the game's mod loader and not by the Feature and Kit loader, so the two never pick up each other's files. A mod sits beside its pack, has no C++ modules, and carries these keys beyond the shared ones: game, pak, publicKey, loadAfter, overrides and workshopId; there is no mod key, the extension says it.
BetterLamps/
BetterLamps.mmod JSON manifest
BetterLamps.meaf the signed pack, built by `mbt package-mod`
preview.png optionalmbt mod new <Name> scaffolds one and mbt package-mod signs and packs it. A mod made for 1.1 has a .mplugin manifest and is skipped with an error naming the rename: change it to <Name>.mmod and remove "mod": true.
What a machine skips
At startup the engine probes the machine once and logs a [Capabilities] block: CPU, audio devices, gamepads, whether the Steam and Discord clients run, the GPU, driver and VRAM, hardware ray tracing, mesh shaders, VRS, bindless, async compute, and each vendor feature with the reason it is missing. Vendor features are decided from the vendor, model and driver: DLSS needs an NVIDIA RTX GPU and driver 520 or newer, DLSS Frame Generation an RTX 40-series, Reflex any NVIDIA GPU, Anti-Lag 2 a Radeon RX, XeSS Frame Generation and XeLL an Intel Arc GPU; FSR and XeSS run on every vendor. No vendor runtime loads to answer, and a runtime this GPU cannot run never loads.
A [Features] block follows: every subsystem that waits for a capability, a project switch or an enabled module, and whether it starts. A skipped one allocates nothing and starts no thread:
[Features] skipped VoiceCapture: no audio input device
[Features] skipped SteamOnline: the Steam client is not running
[Features] skipped DLSS Frame Generation runtime: needs an RTX 40-series or newerThe client check runs once at startup: a Steam or Discord client started after the game is picked up on the next launch.
Engine sources
This page describes behavior implemented in these files of the engine repository, checked against commit 72b571741.
- Engine/Source/Assets/Project/Api/Project/FeatureManager.h
- Engine/Source/Assets/Project/Api/Project/FeatureManifestSchema.h
- Engine/Source/Assets/Project/Api/Project/FeatureSecurity.h
- Engine/Source/Core/Core/Api/Core/ConfigIni.h
- Engine/Source/Assets/AssetFormats/Api/AssetFormats/ImportTranslator.h
- Engine/Source/Editor/EditorFramework/Api/EditorFramework/EditorFeatureExtensions.h
- Engine/Source/Core/Core/Api/Core/FModuleManager.h
- Engine/Source/Gameplay/Game/Api/Game/EngineModularRegistry.h
- Engine/Source/Simulation/ECS/Api/ECS/SceneSystemRegistry.h
- Engine/Source/Editor/EditorFramework/Api/EditorFramework/EditorPanelRegistry.h
- Engine/Source/Editor/EditorFramework/Api/EditorFramework/EditorExtensionRegistry.h
- Engine/Kits/Combat/Combat.mkit
- Engine/Features/ScanHierarchy/ScanHierarchy.mfeature
- Engine/Source/Core/Core/Api/Core/ProjectLayout.h
- Templates/TP_FirstPerson/Config/Features.ini
- Engine/Source/Assets/Project/Api/Project/FeatureModules.h
- Engine/Source/Core/Core/Api/Core/EngineCapabilities.h
- Engine/Source/Core/Core/Api/Core/EngineFeatureRequirements.h