SkinnedRendererPatch
Patches the games variant system to add support for SkinnedMeshRenderers
Last updated | 3 months ago |
Total downloads | 22209 |
Total rating | 2 |
Categories | Mods Misc BepInEx Bug Fixes |
Dependency string | DarthLilo-SkinnedRendererPatch-1.1.3 |
Dependants | 12 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
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.