I am trying to use the CombineSkinnedMeshes script from the wiki but whenever I apply it, I lose all animations and the model goes back to a basic pose (sideways none-the-less). I am trying to use the script to combine multiple characters into a single skinned renderer (which all share the same material). Are there any specific requirements to use this script, or am I possibly trying to use it in the wrong way? Any help would be greatly appreciated.
Do a search in the forums (I think the iPhone subsection is a good place to look) for the meshmanager. My mate also suggested I combine all my static meshes for a quick draw but I needed animated characters and this was the answer. I just dropped this script onto the mesh highest in the heirarchy and voila…, instand animated meshes…
0 configuration needed. I did the same for the enemy character and my draw calls went down from 158 to 10. Brilliant script. I just can’t recall where I got it from. Almost certain it was in the iPhone section…
The only problem I have with this script is that my one object(s) in the script has some texture issues. It looks fine when you drag the prefab into the screen, but when I instantiate it into that group, 2 thirds of the texture is wrongly colored… Can’t explain it…
Still an awesome script.
Oh, and one more thing, because you say the model changes direction…
I don’t know any other packages, but Maya has the option of baking all transforms and rotations so you can always save your object with 0,0,0 coordinates. This used to give me no end of grief back in Unity 1.x. I since got into the habit of deleting my history and fixing my transforms so I don’t know if it is still the case, but for safety’s sake, always delete your history before you import the model into Unity… It can’t hurt…
Hey MrDude - I checked out the MeshMerger, but as you said its only for static meshes which can then be transformed. I have skinned meshes, which use the SkinnedMeshRenderer, so no combine is actually done on the objects.
thanks for the input though.
not sure if I explained this correctly…
MeshMerger does allow for animated meshes… I have three SWAT guys carrying their riot shields and they are all animated within the MeshMerger…
If this is not what you were looking for, k. It sounded like it. Anyways, good luck
Sorry I couldn’t be of more use ![]()
I’ll check it out again if that’s the case! I’m not really sure if i’m setting it up wrong - none of my characters have any MeshFilters attached to them - only skinnedmeshrenderers. I’ll keep playing with it - thanks for your help.
I don’t think there is a simpler way to test it than by doing what I did so, just as a means of determining wether this will work or not, follow these steps. If it doesn’t work then you can stop wasting your time ![]()
- Create a new empty GameObject
- Drag the script onto this object (don’t change anything)
- Drag a couple models onto the GameObject
- Hit play…
0 configuration. Just drop everything into an object and hit play…
Fingers crossed… ![]()