![DarthLilo-SkinnedRendererPatch icon](https://gcdn.thunderstore.io/live/repository/icons/DarthLilo-SkinnedRendererPatch-1.1.3.png.128x128_q95.jpg)
SkinnedRendererPatch
Patches the games variant system to add support for SkinnedMeshRenderers
Last updated | a week ago |
Total downloads | 4562 |
Total rating | 1 |
Categories | Mods Misc BepInEx Bug Fixes |
Dependency string | DarthLilo-SkinnedRendererPatch-1.1.3 |
Dependants | 8 other packages depend on this package |
This mod requires the following mods to function
![BepInEx-BepInExPack-5.4.2100 icon](https://gcdn.thunderstore.io/live/repository/icons/BepInEx-BepInExPack-5.4.2100.png.64x64_q95.png)
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.