![DarthLilo-SkinnedRendererPatch-1.1.2 icon](https://gcdn.thunderstore.io/live/repository/icons/DarthLilo-SkinnedRendererPatch-1.1.2.png.128x128_q95.jpg)
SkinnedRendererPatch
Patches the games variant system to add support for SkinnedMeshRenderers
Date uploaded | 2 months ago |
Version | 1.1.2 |
Download link | DarthLilo-SkinnedRendererPatch-1.1.2.zip |
Downloads | 1549 |
Dependency string | DarthLilo-SkinnedRendererPatch-1.1.2 |
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.
CHANGELOG
1.1.3
- Removed some transpiler code which was causing compatability errors, this may result in false positive errors for grabbable objects during scrap spawning, these are safe to ignore.
- Cleaned up some extra logging
1.1.2
- Fixed an issue with loading empty save data
1.1.1
- Rewrote how the soft dependency was loaded to be more in line with standards
1.1.0
-
Fixed item state desync errors when when loading items that weren't in the save file
-
Items now maintain their state across save reloads. (for example all triangle flasks would become round flasks)
-
Items now properly sync across multiple clients
-
Added specific support for Lilo's Scrap Extension for tamed animal states.
1.0.0
- Initial Release