You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elias Wennerberg edited this page Oct 4, 2026
·
1 revision
Mods & DLC
Commands are baked into the build cache, so assemblies loaded after startup (mods, DLC, Addressables) need explicit registration.
Self-registering mod
usingSystem.Reflection;usingNoSlimes.Util.UniTerminal;publicclassMyMod:MonoBehaviour{privatevoidAwake(){UniTerminal.DiscoverCommandsInAssembly(Assembly.GetExecutingAssembly());}[ConsoleCommand("mod_hello",Description="Says hello from the mod.")]publicstaticvoidHelloCommand(){Debug.Log("Hello from MyMod!");}}