Here we will detail the different folder and config file locations and their purpose.
Folders and general files
The core framework directory, a.k.a. the one you see first on the GitHub web interface, contains the following folders and files:
.github- For GitHub- and git-specific data, GitHub Actions workflows, issue and PR templatesConfig- The default config folder containing the default config files- Core - Contains core configs
- Translations - Translation configs for the i18n module
Content- The default content folder; contains example images and iconsFramework- Contains the entire source code and dependencies for the framework; for more info for framework developers, scroll to the bottom of the pageProjects- Contains your projectsUVKBuildTool- Contains theUVKBuildTooland its source codecreate-project.sh- Used to create a projectexport.sh- Used to export your application for production distributioninstall.sh- The framework installation scriptupdate.sh- An automated script to update your project and framework to a new version
Additionally, every project contains those additional files and folders:
Exported- For storing your final production buildsGenerated- For generated files and sourcesSource- For your application’s source codeCMakeLists.txt- The CMake project fileuvproj.yaml- Your project’s config
The uvproj.yaml file
The uvproj.yaml file contains metadata for the project, such as:
- The application name
- The application version
- The engine version. Can be the version of the framework, or another version identifier for another base library you use on top of the framework
- A list of enabled modules. Further documentation.
- A list of production installation instructions. Further documentation.
- Production export build modes. Further documentation.
The most basic configuration looks like this:
name: "UntitledGameSystemManager"
version: "1.0.0.0"
engine-version: "1.0.0.0"
This basic information can be fetched through the Instance. More information can be found here.
Tip
If you want to reliably check the version of the framework, you can use the UIMGUI_FRAMEWORK_VERSION and UIMGUI_FRAMEWORK_VERSION_NUMERIC compiler definitions. You can use UIMGUI_FRAMEWORK_VERSION_NUMERIC for easy comparison in macro #if conditions.
Versions are converted to base-10 integers with any leading zeroes being removed. For example: 0.9.9.7 becomes 997, and 1.0.0.0 becomes 1000.
Config files
The config files are located under the Config folder, which itself contains 2 directories, Core and Translation.
The Core directory stores the following files:
DefaultLayout.ini- The layout file for the UI; do not modify directlyFallbackLayout.ini- The fallback layout for the UI in case your normal file cannot be found; do not modify directlyKeybindings.yaml- For custom keybindings, detailed in later wiki entriesModules.yaml- Themodulesconfig file; contains saved settings for different modules, detailed in later entriesRenderer.yaml- The settings for the renderer, detailed in later entriesWindow.yaml- The settings for the window, detailed in later entries
The Translation folder initially stores just one file, translation-base.yaml. This file defines all strings
that can be translated by the localisation module. Additionally, you can create additional files using the standard
locale naming structure for creating translations. More info can be found in later entries.
The WASM directory contains the pre.js and post.js files that are used if the options for adding pre- and post-JavaScript files are enabled respectively. More info on deploying to WASM can be found here.
Finally, the cmake folder stores the <project name>.cmake file. More info about this file can be found here.
Directory prefix macros
Check out the Directory strings and Config.hpp page.