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 screenname_taken · Apr 28, 2014 at 09:16 AM · lightmappingstaticbatching

Objects won't batch.

Hi, i'm sure it'll probably be something stupid i haven't noticed, but i can't get a bunch of object to batch. They have the same material, are set as Static but not as lightmapping static so they don't get lightmapped, they are not scaled (they stay at their 1,1,1) and are just copies of the same prefab dragged in. I even checked the vertice limit and it's below 300 for each prefab. They won't batch even if i clear the lightmaps, so they are not the ones braking the batching. And yes, dynamic batching is activated in the player settings. The rest of the stuff batch! Inlcuding other - more complex prefabs - that share the same material.

Comment
Add comment · Show 4
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 02:48 PM 0
Share

Is there anybody heeeere to answer to my stooory all about the mesh that wouldn't baaatch It's the kind of mesh you want to batch

avatar image babasuter · Apr 28, 2014 at 03:24 PM 0
Share

Can you add a script example or screenshot that shows more specifically what you've already tried?

avatar image robertbu · Apr 28, 2014 at 03:33 PM 0
Share

Are you changing any material properties at runtime? If so, the objects won't batch. Have you tried decomposing your problem? First create a new scene that has nothing but a script to spawn your prefabs. Does the problem occur there? What happens if you change the material? What happens if you replace the mesh with a cube mesh? Etc.

avatar image screenname_taken · Apr 28, 2014 at 06:23 PM 0
Share

Nothing is changing at runtime. I just imported the mesh from maya and simply added the material. No scripts are there. As i've said i just put the object in the editor. Nothing is spawning it or anything.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Animatics_3D · Apr 28, 2014 at 05:12 PM

check your mesh UV

i think when you are clearing light map your Light map uv count is still left on your mesh and its increasing your vertex count thats why batching is not working .so

you need to check your mesh uv channels UV0,UV1

if both the channel is available in your mesh then you need to del UV1 channel bec its using for light map , otherwise you can reduce your vertex count less than 180 vertices.

Comment
Add comment · Show 1 · 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 screenname_taken · Apr 28, 2014 at 06:25 PM 0
Share

I'll check it up and see if i can find anything. I just dragged the thing in. thx

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

22 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 avatar image avatar image

Related Questions

Static batching breaks UVs 0 Answers

Why isn't my static batching working? 1 Answer

Beast Lightmapping is not working just when he wishes :)) every time im getting errors 5 Answers

Lightmapping static LOD objects pops up 0 Answers

Static vs Dynamic Batching on iPhone for Antialiasing 2 Answers


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