SkillAgentSearch skills...

UnitySkinnedMeshCombiner

Combine Unity Mecanim SkinnedMeshRenderers with working bones and blendShapes

Install / Use

/learn @lxteo/UnitySkinnedMeshCombiner
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

UnitySkinnedMeshCombiner

Combines Unity SkinnedMeshRenderers in Unity 2019. Takes a list of SkinnedMeshInstance and outputs a single mesh with working bones and blendshapes. Should avoid most GC, but there doesn't seem to be a way to avoid that with copying of blendshapes.

Each SkinnedMeshInstance requires the Animator component because that's the only place Unity seems to keep the mapping for each bone. Also needs both the Mesh and SkinnedMeshRenderer, which allows you to modify the mesh before combining it. SubMeshes need to be in running order and it assumes each new mesh starts with submesh 0.

Also this relies on the mecanim human bones to map the bones, so it will not work with non humanoid rigs.

Used in Embark.

View on GitHub
GitHub Stars38
CategoryDevelopment
Updated11mo ago
Forks2

Languages

C#

Security Score

67/100

Audited on Apr 22, 2025

No findings