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 stingman · Jan 16, 2013 at 04:23 AM · meshchildrentrianglescombine

Combine Children and Unity 4.0.1 not working the same as in previous version

Has anyone used the Combine Children script from the Standard Assets folder in Unity 4.0.1? It says that

 "UnityEngine.Mesh.SetTriangleStrip(int[], int) is obsolete"

and that we should replace this with

Mesh.SetTriangles.

So I replaced it 3 times in the script and I compiled and ran. No errors. Yet now the meshes don't appear in the game view. If I convert back to the obsolete version the meshes do appear in the game view. But then I get the warnings again. Plus there are a couple of extra unwanted triangle strips connecting geometry where it shouldn't. Before upgrading to this version of Unity I never had a problem with this script before. Anyone have any other issues with this script or any possible solutions? Thanks!

Comment
Add comment · Show 3
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 SARWAN · Jan 21, 2013 at 04:28 AM 0
Share

Is that only problem you faced?

Did you changed the anything in the script. Like Hashtable to Dictionary & ArrayList to List?

avatar image iwaldrop · Jan 21, 2013 at 06:10 AM 0
Share

I was experimenting with this the other day after someone else posted a problem with changing the hashtable to a dictionary and the arraylist to a list. Either way, yeah, you get some warnings, but it works. It probably won't work forever, but you can silence the warnings by using a #pragma block if console warnings bug you.

avatar image stingman · Jan 21, 2013 at 05:01 PM 0
Share

Well actually it does not work 100%. There are about 12 different houses in a scene. The script creates 2 triangle strips connecting 2 of the different houses. The only way to remove that unwanted triangle strip is to remove those game objects from the parent holding all of them. Obviously the draw calls increase if I do this, but it may be the best solution since I don't have time to mess around with this script a lot. I appreciate the comments though.

0 Replies

· Add your reply
  • Sort: 

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

10 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

Related Questions

Uncombine Children? 1 Answer

Combining Mesh at Runtime via Script causes temporary FPS drop 1 Answer

What's the Script for Combining Prefabs 2 Answers

Combining Meshes, mesh combine a simple working example 1 Answer

Merge mesh triangles into polygons: need help with vertex ordering 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