
I export from Spine with the constrain 1024x1024, Spine produce skeleton.png and skeleton2.png because it does not fit in 1 atlas. (I choose to sacrifice draw calls for extra space saved from one big 2048x2048)
Then in Unity I proceed to create necessary files for the character. I created 2 materials for skeleton.png and skeleton2.png and assign it via the Spine Atlas file. But when I attach the Skeleton Data to my Game Object, first in the Mesh Renderer it display only one material which is understandable. But then when I select a skin that does use images in both material, the Mesh Renderer does got updated to 2 materials, but, those two are the same, which is the first material.. And no, I can't forcefully change the second one to my "CharMaterialSecond" because the editor script seems to be automatic and prevent me from setting it. And so the output produces erroneous result.
In the .atlas file it does contain both data of skeleton.png and skeleton2.png as seen in the screen shot. And I'm sure I have set the skeleton.png in my CharMaterial and set skeleton2.png in CharMaterialSecond.
I just upgraded to Unity 4.5 by the way. So I wondered if this was caused by the latest update or not?
Update : Suddenly (not sure at what point, probably close and open Unity again?) The output finally correctly show nice result but, the materials now ranges from 1 to 3 or even 5 depending on the animation! And the draw calls are equal to number of materials shown. In this screenshot, draw call is 5. My draw call count will even varying mid-animation because of this.
