KMModSettings - Qkrisi/ktanemodkit GitHub Wiki

KMModSettings

[DisallowMultipleComponent]
public class KMModSettings : MonoBehaviour

Allows mods to have their own settings.


public string Settings;

The contents of modSettings.json in this mod's directory, containing any user-specific data they may have put there.


public string SettingsPath;

The location of the ModSettings file that can be used to refresh Settings without reloading the mod.

Set automatically by game overwriting anything that you put here.


public void RefreshSettings()

Refreshes settings from file.