Skip to content

Combine Unity Mecanim SkinnedMeshRenderers with working bones and blendShapes

Notifications You must be signed in to change notification settings

lxteo/UnitySkinnedMeshCombiner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Combine Unity Mecanim SkinnedMeshRenderers with working bones and blendShapes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages