ModTool will look for mods automatically. It does this by monitoring one or more directories for any added, changed or removed mods.
ModTool's default search directory is the "Mods" folder inside the game's install directory. On Android, this is based on Application.persistentDataPath. It's possible to add or remove search directories.
ModTool keeps a collection of available Mods and provides events for whenever a Mod is added, changed or removed.
To add a search directory, use ModManagerAddSearchDirectory(String)
To remove a search directory, use ModManagerRemoveSearchDirectory(String)
The search directories can be refreshed with ModManagerRefreshSearchDirectories. This will look for any added, removed or changed mods. ModManagerrefreshInterval configures an automatic refresh interval.
When a new Mod is found, or when a Mod has been removed, ModTool will update the collection of available Mods.
ModmodInfo contains all of a Mod's info, like the kinds of content that is included in the Mod, the Mod's name and the Mod's version.
A Mod instance will become invalid when a change is detected in its folder. For example, when a Mod's files are removed. Make sure that you're not using old Mod instances that are marked invalid. Invalid Mods won't load.
See Loading a mod for more information on how to load the available Mods.