Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Exalia · Nov 20, 2013 at 10:22 AM · meshstaticbatchingstatic batchingbatch

Why isn't my static batching working?

Hi,

My scene has many objects that don't do anything such as terrain, I have set these to static in an attempt to batch them up and send them as one draw call as the meshes are mostly identical, however when I trace my game I notice that this isn't happening at all.

I use around 50 of the same object, duplicated so they all use the same mesh but they are not all drawn together.

has anyone has this problem before and solved it or can provide any advice on how to check I'm setting this up correctly.

Thanks

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image screenname_taken · Apr 28, 2014 at 09:58 AM 0
Share

@ Exalia: Found the solution yet? I have the same issue.

avatar image Exalia · May 01, 2014 at 02:46 PM 0
Share

Hey, I'm not sure as this was a very long time ago and I wasn't very experienced but If I were to answer my own question now, I'd make sure all my meshes were using the same shader as this is the defining point when it comes to batching not the mesh.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by GameVortex · Nov 20, 2013 at 01:11 PM

There is a couple of criteria for static batching to work;

1: Unity Pro - Static Batching is unfortunately only available on the pro version.

2: The renderers on the gameobjects that you want to batch need to share the same material.

3: Lastly, all the gameobjects need to be marked as static in the top right corner of the inspector.

Try double checking all of those first.

Here is also a little more information on Batching.

Comment
Add comment · Show 8 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image GameVortex · Nov 20, 2013 at 03:13 PM 3
Share

@meat5000 That would be for Dynamic Batching. Static Batching can batch for any size.

avatar image meat5000 ♦ · Nov 20, 2013 at 03:34 PM 1
Share

Yep, you are right. Been a while since I read that page :D

avatar image Exalia · Nov 20, 2013 at 06:31 PM 0
Share

scared me for a second there meat :P

  1. Check

  2. Check

  3. Check

I'll run a trace and see what happens :)

avatar image GameVortex · Nov 20, 2013 at 09:15 PM 0
Share

Also, I forgot: only $$anonymous$$eshRenderer and ParticleSystem can be static batched. You mentioned that you are trying to batch together Terrain, is that unity Terrain or an imported terrain model? Because Unity Terrain can not be batched.

avatar image Exalia · Nov 20, 2013 at 09:37 PM 0
Share

Not sure how unity terrain works, I just know it's horrible on mobile platforms haha

No I'm not using unity terrain to answer your question. I'm not at work anymore so I can't run the trace but I will do tomorrow and get back to you on this :)

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Static Batching with LOD Meshes/GameObjects & Other Questions 1 Answer

Only half my draw calls being static batched 0 Answers

Static batching modular city, good or bad? 0 Answers

Getting the triangles (not setting) of statically batched meshes? 0 Answers

custom staticBatchRoot for build time static meshes? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges