# seriouscache/uabe architecture

> Architecture diagram of the GitHub repository seriouscache/uabe, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/seriouscache/uabe
- Repository: https://github.com/seriouscache/uabe

## Overview

UABE is a Windows editor for Unity asset and AssetBundle files. The principal workflow is to open files into application contexts, inspect or modify assets, use plugins to import/export supported formats, and save modifications; it can also package changes as standalone mod installers. The graph preserves the documented plugin formats, type-database tooling, and installer capability. Several implementation files were not sampled, so uncertain links are omitted or shown as unverified rather than inferred as calls.

Main entry points: [`UABE_Generic/PluginManager.h`](https://github.com/seriouscache/uabe/blob/master/UABE_Generic/PluginManager.h) (Plugin management), [`UABE_Generic/AppContext.cpp`](https://github.com/seriouscache/uabe/blob/master/UABE_Generic/AppContext.cpp) (Application context), [`UABE_Win32/Win32AppContext.h`](https://github.com/seriouscache/uabe/blob/master/UABE_Win32/Win32AppContext.h) (Win32 application), [`ModInstaller/MakeInstaller.cpp`](https://github.com/seriouscache/uabe/blob/master/ModInstaller/MakeInstaller.cpp) (Mod installer creation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Editor interface"]
  node_winapp["Win32 application<br/>[Win32AppContext.h]"]
  node_mainwin["Main window<br/>[MainWindow2.cpp]"]
  node_dialogs["Asset dialogs"]
end

subgraph group_core["Asset and bundle core"]
  node_appctx["Application context<br/>[AppContext.cpp]"]
  node_filectx["File contexts"]
  node_assetsfile["Assets file format"]
  node_bundlefile["Bundle format"]
  node_replacers["Asset replacements<br/>[AssetsReplacer.cpp]"]
  node_resourcemgr["Resource manager"]
  node_pluginmgr["Plugin management<br/>[PluginManager.h]"]
end

subgraph group_plugins["Asset format plugins"]
  node_texture["Texture conversion<br/>[Texture.cpp]"]
  node_text["Text asset conversion<br/>[TextAsset.cpp]"]
  node_audio["Audio conversion<br/>[AudioClip.cpp]"]
  node_mesh["Mesh conversion<br/>[Mesh.cpp]"]
  node_utility["Utility actions<br/>[Utility.cpp]"]
end

subgraph group_types["Type metadata"]
  node_classdb[("Class database")]
  node_typedbui["Type database editor"]
  node_typetree["Type tree generator<br/>[TypeField.cs]"]
  node_monobehaviour["MonoBehaviour tools"]
end

subgraph group_mods["Mod packaging"]
  node_installer["Mod installer creation<br/>[MakeInstaller.cpp]"]
  node_installui["Installer dialog<br/>[InstallDialog.cpp]"]
end

node_user(("Editor user"))

node_user -->|"uses"| node_winapp
node_winapp -->|"extends"| node_appctx
node_winapp -->|"owns"| node_mainwin
node_mainwin -.->|"opens"| node_dialogs
node_appctx -->|"manages"| node_filectx
node_filectx -->|"tracks"| node_replacers
node_appctx -.->|"opens files"| node_assetsfile
node_appctx -.->|"opens bundles"| node_bundlefile
node_assetsfile -->|"uses type metadata"| node_classdb
node_pluginmgr -->|"receives context"| node_appctx
node_dialogs -.->|"offers plugin actions"| node_pluginmgr
node_texture -.->|"registers actions"| node_pluginmgr
node_text -.->|"registers actions"| node_pluginmgr
node_audio -->|"registers actions"| node_pluginmgr
node_mesh -.->|"registers actions"| node_pluginmgr
node_utility -.->|"registers actions"| node_pluginmgr
node_audio -->|"reads resources"| node_resourcemgr
node_typedbui -.->|"edits database"| node_classdb
node_monobehaviour -->|"reads types"| node_classdb
node_monobehaviour -.->|"launches generator"| node_typetree
node_user -->|"creates installer"| node_installer
node_installer -.->|"packages changes"| node_replacers
node_installui -.->|"configures"| node_installer

click node_winapp "https://github.com/seriouscache/uabe/blob/master/UABE_Win32/Win32AppContext.h"
click node_mainwin "https://github.com/seriouscache/uabe/blob/master/UABE_Win32/MainWindow2.cpp"
click node_dialogs "https://github.com/seriouscache/uabe/blob/master/UABE_Win32/AssetListDialog.cpp"
click node_appctx "https://github.com/seriouscache/uabe/blob/master/UABE_Generic/AppContext.cpp"
click node_filectx "https://github.com/seriouscache/uabe/blob/master/UABE_Generic/FileContextInfo.cpp"
click node_assetsfile "https://github.com/seriouscache/uabe/blob/master/AssetsTools/AssetsFileFormat.cpp"
click node_bundlefile "https://github.com/seriouscache/uabe/blob/master/AssetsTools/AssetBundleFileFormat.cpp"
click node_replacers "https://github.com/seriouscache/uabe/blob/master/AssetsTools/AssetsReplacer.cpp"
click node_resourcemgr "https://github.com/seriouscache/uabe/blob/master/AssetsTools/ResourceManagerFile.cpp"
click node_texture "https://github.com/seriouscache/uabe/blob/master/Plugins/Texture/Texture.cpp"
click node_text "https://github.com/seriouscache/uabe/blob/master/Plugins/TextAsset/TextAsset.cpp"
click node_audio "https://github.com/seriouscache/uabe/blob/master/Plugins/AudioClip/AudioClip.cpp"
click node_mesh "https://github.com/seriouscache/uabe/blob/master/Plugins/Mesh/Mesh.cpp"
click node_utility "https://github.com/seriouscache/uabe/blob/master/Plugins/Utility/Utility.cpp"
click node_pluginmgr "https://github.com/seriouscache/uabe/blob/master/UABE_Generic/PluginManager.h"
click node_classdb "https://github.com/seriouscache/uabe/blob/master/AssetsTools/ClassDatabaseFile.cpp"
click node_typedbui "https://github.com/seriouscache/uabe/blob/master/UABE_Win32/TypeDatabaseEditor.cpp"
click node_typetree "https://github.com/seriouscache/uabe/blob/master/TypeTreeGenerator/TypeField.cs"
click node_monobehaviour "https://github.com/seriouscache/uabe/blob/master/UABE_Win32/MonoBehaviourManager.cpp"
click node_installer "https://github.com/seriouscache/uabe/blob/master/ModInstaller/MakeInstaller.cpp"
click node_installui "https://github.com/seriouscache/uabe/blob/master/ModInstaller/InstallDialog.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_winapp,node_mainwin,node_dialogs,node_user toneBlue
class node_appctx,node_filectx,node_assetsfile,node_bundlefile,node_replacers,node_resourcemgr,node_pluginmgr toneAmber
class node_texture,node_text,node_audio,node_mesh,node_utility toneMint
class node_classdb,node_typedbui,node_typetree,node_monobehaviour toneRose
class node_installer,node_installui toneIndigo
```

## Components

### Editor interface

- [Win32 application](https://github.com/seriouscache/uabe/blob/master/UABE_Win32/Win32AppContext.h): `UABE_Win32/Win32AppContext.h`
- [Main window](https://github.com/seriouscache/uabe/blob/master/UABE_Win32/MainWindow2.cpp): `UABE_Win32/MainWindow2.cpp`
- [Asset dialogs](https://github.com/seriouscache/uabe/blob/master/UABE_Win32/AssetListDialog.cpp): `UABE_Win32/AssetListDialog.cpp`

### Asset and bundle core

- [Application context](https://github.com/seriouscache/uabe/blob/master/UABE_Generic/AppContext.cpp): `UABE_Generic/AppContext.cpp`
- [File contexts](https://github.com/seriouscache/uabe/blob/master/UABE_Generic/FileContextInfo.cpp): `UABE_Generic/FileContextInfo.cpp`
- [Assets file format](https://github.com/seriouscache/uabe/blob/master/AssetsTools/AssetsFileFormat.cpp): `AssetsTools/AssetsFileFormat.cpp`
- [Bundle format](https://github.com/seriouscache/uabe/blob/master/AssetsTools/AssetBundleFileFormat.cpp): `AssetsTools/AssetBundleFileFormat.cpp`
- [Asset replacements](https://github.com/seriouscache/uabe/blob/master/AssetsTools/AssetsReplacer.cpp): `AssetsTools/AssetsReplacer.cpp`
- [Resource manager](https://github.com/seriouscache/uabe/blob/master/AssetsTools/ResourceManagerFile.cpp): `AssetsTools/ResourceManagerFile.cpp`
- [Plugin management](https://github.com/seriouscache/uabe/blob/master/UABE_Generic/PluginManager.h): `UABE_Generic/PluginManager.h`

### Asset format plugins

- [Texture conversion](https://github.com/seriouscache/uabe/blob/master/Plugins/Texture/Texture.cpp): `Plugins/Texture/Texture.cpp`
- [Text asset conversion](https://github.com/seriouscache/uabe/blob/master/Plugins/TextAsset/TextAsset.cpp): `Plugins/TextAsset/TextAsset.cpp`
- [Audio conversion](https://github.com/seriouscache/uabe/blob/master/Plugins/AudioClip/AudioClip.cpp): `Plugins/AudioClip/AudioClip.cpp`
- [Mesh conversion](https://github.com/seriouscache/uabe/blob/master/Plugins/Mesh/Mesh.cpp): `Plugins/Mesh/Mesh.cpp`
- [Utility actions](https://github.com/seriouscache/uabe/blob/master/Plugins/Utility/Utility.cpp): `Plugins/Utility/Utility.cpp`

### Type metadata

- [Class database](https://github.com/seriouscache/uabe/blob/master/AssetsTools/ClassDatabaseFile.cpp): `AssetsTools/ClassDatabaseFile.cpp`
- [Type database editor](https://github.com/seriouscache/uabe/blob/master/UABE_Win32/TypeDatabaseEditor.cpp): `UABE_Win32/TypeDatabaseEditor.cpp`
- [Type tree generator](https://github.com/seriouscache/uabe/blob/master/TypeTreeGenerator/TypeField.cs): `TypeTreeGenerator/TypeField.cs`
- [MonoBehaviour tools](https://github.com/seriouscache/uabe/blob/master/UABE_Win32/MonoBehaviourManager.cpp): `UABE_Win32/MonoBehaviourManager.cpp`

### Mod packaging

- [Mod installer creation](https://github.com/seriouscache/uabe/blob/master/ModInstaller/MakeInstaller.cpp): `ModInstaller/MakeInstaller.cpp`
- [Installer dialog](https://github.com/seriouscache/uabe/blob/master/ModInstaller/InstallDialog.cpp): `ModInstaller/InstallDialog.cpp`

### Other components

- **Editor user**

## Connections

- Editor user → Win32 application: uses (evidence: `README.md`)
- Win32 application → Application context: extends (evidence: `UABE_Win32/Win32AppContext.h`)
- Win32 application → Main window: owns (evidence: `UABE_Win32/Win32AppContext.h`)
- Main window → Asset dialogs: opens
- Application context → File contexts: manages
- File contexts → Asset replacements: tracks
- Application context → Assets file format: opens files
- Application context → Bundle format: opens bundles
- Assets file format → Class database: uses type metadata
- Plugin management → Application context: receives context (evidence: `UABE_Generic/PluginManager.h`)
- Asset dialogs → Plugin management: offers plugin actions
- Texture conversion → Plugin management: registers actions
- Text asset conversion → Plugin management: registers actions
- Audio conversion → Plugin management: registers actions (evidence: `Plugins/AudioClip/AudioClip.cpp`)
- Mesh conversion → Plugin management: registers actions
- Utility actions → Plugin management: registers actions
- Audio conversion → Resource manager: reads resources (evidence: `Plugins/AudioClip/AudioClip.cpp`)
- Type database editor → Class database: edits database
- MonoBehaviour tools → Class database: reads types (evidence: `UABE_Win32/MonoBehaviourManager.cpp`)
- MonoBehaviour tools → Type tree generator: launches generator
- Editor user → Mod installer creation: creates installer (evidence: `README.md`)
- Mod installer creation → Asset replacements: packages changes
- Installer dialog → Mod installer creation: configures
