SkinnedRendererPatch
Patches the games variant system to add support for SkinnedMeshRenderers
Screenshots 1 screenshots
About this mod Author’s original text
SkinnedRendererPatch
Patches the game variant system to support SkinnedMeshRenderers and allows states such as random materials or meshes to be saved across sessions!
This mods effects are barely noticible on its own, at most you'll notice flasks having their different shapes retained, this mod is best used as a library for your own scrap mods.
How?
When creating an item in unity, there are two fields called "Mesh Variants" and "Material Variants" each doing exactly what their name says.
However they don't work with SkinnedMeshRenderers by default and only with MeshRenderers, with this mod installed you can now use these fields with SkinnedMeshRenderers.
There are a few important things to note.
- Due to the nature of SkinnedMeshRenderers possibly existing multiple times underneath one model, you must join all of your meshes into one renderer IF using the mesh variants. (Material variants aren't affected by this)
- You will not see the effects of either if you spawn them in using Imperium or Lethal Company's built in development menu, the code is only ran when landing on a moon!
- This mod is required on ALL clients, values will not sync otherwise and if a mod is attempting to replace a mesh on a SkinnedMeshRenderer without this mod it will cause all scrap to be worth nothing on that client.
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: