Configgy

版本 v1.0.7·更新於 2025-03-30

Library mod for configuring other mods!

模組介紹 作者原文

Configgy

A library mod for configuring plugin data at runtime.

Disclaimer

This mod does more or less nothing on its own.

I haven't got around to making proper documentation for it yet.

Example usage

public class MyPlugin: BaseUnityPlugin

{

private ConfigBuilder config;

private void Awake()

{

config = new ConfigBuilder("MyName.MyPlugin", "My Plugin");

config.BuildAll(); //Generates config menu from any Configgable attribute tagged static fields in your plugin.

}

}

public class MyBehaviour: MonoBehaviour

{

//All of these will be automatically initialized when config.Build is called.

[Configgable]

private static float myFloat = 4f;

//A path and display name are optional.

[Configgable]

private static ConfigToggle myToggle = new ConfigToggle(true);

//Defines a path in the menu and a display name.

[Configgable("MySliders", "Slider That Controls Things")]

private static FloatSlider slider = new FloatSlider(1f, 0f, 1f);

[Configgable("MyStrings", "Important String")]

private static ConfigInputField stringField = new ConfigInputField("default String!");

private void Update()

{

//Prints current value of the slider.

Debug.Log(slider.Value);

}

}

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack

檔案與校驗

檔案名稱
Configgy-1.0.7.zip
檔案大小
81.8 KiB
SHA-256
4634d6f6f93b5c2aa43fa82f6fc4fc105d38d0e3151a7926373e49ab559dee5f
入庫時間
2026-10-06 19:13