# Importing Animation breaks Batching?

**URL:** https://discussions.unity.com/t/importing-animation-breaks-batching/420174
**Category:** Mobile
**Tags:** iOS
**Created:** [August 9, 2010, 9:47pm UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174 "2010-08-09T21:47:09Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Randy-Edmonds](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/randy-edmonds/32/285007_2.png) [@Randy-Edmonds](https://discussions.unity.com/u/Randy-Edmonds)
#### Post date: [August 9, 2010, 9:47pm UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/1 "2010-08-09T21:47:09Z")

</div>

I have an FBX model (created in Maya) that is a very basic object (basically 5 cubes).

When I import it into Unity iPhone without animation the object will do dynamic batching… when I import it with animation it will not batch! Any idea why? This is killing me!

I have attached the model. Any help will be greatly appreciated!

Thanks.

[363506–12623–$zombiefatwalktestfbx\_408.zip](https://discussions.unity.com/uploads/short-url/rjSupUPOxrMcfv301ojA2KKYo2B.zip) (18.4 KB)

---

<div class="post-metadata">

### Author: ![EskemaGames](https://avatars.discourse-cdn.com/v4/letter/e/ac91a4/32.png) [@EskemaGames](https://discussions.unity.com/u/EskemaGames)
#### Post date: [August 9, 2010, 9:55pm UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/2 "2010-08-09T21:55:07Z")

</div>

The batch only works with simple models and less than 300 polys. So it’s only useful for static models or scenery objects without animations

---

<div class="post-metadata">

### Author: ![Randy-Edmonds](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/randy-edmonds/32/285007_2.png) [@Randy-Edmonds](https://discussions.unity.com/u/Randy-Edmonds)
#### Post date: [August 9, 2010, 10:02pm UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/3 "2010-08-09T22:02:09Z")

</div>

Dynamic batching works on moving objects less than 300 verts… does having an Animation effect this?

---

<div class="post-metadata">

### Author: ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)
#### Post date: [August 9, 2010, 10:59pm UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/4 "2010-08-09T22:59:19Z")

</div>

no, animation does not affect this, it should still work.

Question is if your model out of unitys view has 300 vertices … its easy to forget that what the modeller tells you is bulls\*\*\* (they omit a lot of technical facts which especially hits the vertex count correctness pretty heavily)

to find that out → empty scene, drop the model in front of the cam, see stats (game window)

---

<div class="post-metadata">

### Author: ![Randy-Edmonds](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/randy-edmonds/32/285007_2.png) [@Randy-Edmonds](https://discussions.unity.com/u/Randy-Edmonds)
#### Post date: [August 9, 2010, 11:07pm UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/5 "2010-08-09T23:07:57Z")

</div>

The model reports ~140 Verts in Unity.

---

<div class="post-metadata">

### Author: ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)
#### Post date: [August 9, 2010, 11:08pm UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/6 "2010-08-09T23:08:22Z")

</div>

Unity iPhone Version?

---

<div class="post-metadata">

### Author: ![Randy-Edmonds](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/randy-edmonds/32/285007_2.png) [@Randy-Edmonds](https://discussions.unity.com/u/Randy-Edmonds)
#### Post date: [August 9, 2010, 11:16pm UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/7 "2010-08-09T23:16:46Z")

</div>

3.0 B5

I think it is something to do with the FBX from Maya. I just don’t know what.

---

<div class="post-metadata">

### Author: ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)
#### Post date: [August 9, 2010, 11:26pm UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/8 "2010-08-09T23:26:33Z")

</div>

ah well U3 is a bit different, until Preview 5 there was no batching and I’m unsure if animated objects batch already again. Its after all a preview, not the released thing (the preview 5 mail refreshed that too)

so you would likely file a bug with above package on the matter to be sure its listed

---

<div class="post-metadata">

### Author: ![Randy-Edmonds](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/randy-edmonds/32/285007_2.png) [@Randy-Edmonds](https://discussions.unity.com/u/Randy-Edmonds)
#### Post date: [August 10, 2010, 1:00am UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/9 "2010-08-10T01:00:24Z")

</div>

Animation Batching does work in 3.0 b5, I’ve tested it. However, the model I am using (attached to be first post) doesn’t batch when I import the animation. I haven’t tested in 1.7 but I don’t think this is a beta issue.

---

<div class="post-metadata">

### Author: ![vegashacker](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/vegashacker/32/493763_2.png) [@vegashacker](https://discussions.unity.com/u/vegashacker)
#### Post date: [November 5, 2010, 3:12am UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/10 "2010-11-05T03:12:11Z")

</div>

I’m able to reproduce your issue (with your attached FBX file) in the newest release version (3.0.0f5). Did you ever figure out the solution? Or a workaround?

---

<div class="post-metadata">

### Author: ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)
#### Post date: [November 5, 2010, 3:33am UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/11 "2010-11-05T03:33:19Z")

</div>

Rather old thread.

It since then got verified that it is not an issue but by design.  
Unity 3 does not batch skinned renderers anymore. Only static ones

---

<div class="post-metadata">

### Author: ![MikaMobile](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/mikamobile/32/105211_2.png) [@MikaMobile](https://discussions.unity.com/u/MikaMobile)
#### Post date: [November 5, 2010, 3:37am UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/12 "2010-11-05T03:37:14Z")

</div>

Didn’t check out your file, but my guess would be that the objects you’re expecting to batch have different local scale values. Either that, or its a skinned mesh (which don’t batch, period).

---

<div class="post-metadata">

### Author: ![vegashacker](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/vegashacker/32/493763_2.png) [@vegashacker](https://discussions.unity.com/u/vegashacker)
#### Post date: [November 5, 2010, 3:55am UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/13 "2010-11-05T03:55:40Z")

</div>

That’s disappointing. Is there anyway to have animated characters without skinned mesh? We’re trying to write a game that has a bunch of enemies (all the same model). If we get batching, performance is acceptable. Without it, it’s not. We’d like those enemies to be animated, however, as they approach the hero.

This is an iPhone project, btw.

Thanks for any advice,  
Rob

---

<div class="post-metadata">

### Author: ![MikaMobile](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/mikamobile/32/105211_2.png) [@MikaMobile](https://discussions.unity.com/u/MikaMobile)
#### Post date: [November 5, 2010, 4:24am UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/14 "2010-11-05T04:24:57Z")

</div>

Animation doesn’t interfere with batching, only skinning, scale, and vert count do. So you can safely have a bunch of animated elements that will batch, as long as they follow the rest of the rules (share a material, same local scale, not skinned, \<300 verts)

---

<div class="post-metadata">

### Author: ![BDCJR](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/bdcjr/32/113540_2.png) [@BDCJR](https://discussions.unity.com/u/BDCJR)
#### Post date: [March 24, 2014, 10:22am UTC](https://discussions.unity.com/t/importing-animation-breaks-batching/420174/15 "2014-03-24T10:22:46Z")

</div>

If the object has the component the dynamic batching dosen’t work. Maybe if your animation is simple enough you can make animation in unity. If you want to have dynamic batching you should use just . Sorry for my english.
