Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.
Sinai edited this page Jan 31, 2022 · 4 revisions

UniverseLib has a simple config setup, this is not a true config implementation as it's really just a single class and is not saved to a file. This config is universally shared, so changing it will affect other mods using UniverseLib. It is expected that all mods will want the same values for each game.

UniverseLibConfig

The UniverseLib.Config.UniverseLibConfig class is a simple wrapper for the config values, and is mainly just used for the setup process.

All values in this class are nullable, and any null values will be ignored by the ConfigManager when it loads a config. This means if you don't care about a particular setting you can simply ignore it and leave it as the default value, preventing you interfering with other mods that do care about it.

ConfigManager

The UniverseLib.Config.ConfigManager class is where the config is actually implemented, UniverseLib uses the properties in this class to determine the relevant features at runtime.

The properties can be set directly by anything. You may wish to implement these settings in your own mod and update the relevant ConfigManager values when your settings are changed or loaded from file.

Configs

Disable_EventSystem_Override

  • If true, disables UniverseLib from overriding the EventSystem from the game when a UniversalUI is in use.

Force_Unlock_Mouse

  • If true, attempts to force-unlock the mouse () when a UniversalUI is in use.

Unhollowed_Modules_Folder

  • For IL2CPP games, this should be the full path to a folder containing the Unhollowed assemblies. This property is only used during the intial startup process.

Clone this wiki locally