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 PrimeDerektive · May 03, 2011 at 06:55 PM · editoreditor-scriptingcombinechildren

Combine Children In-Editor?

Is it at all possible to combine the child meshes/materials of a GameObject in the editor, rather than at runtime? I'd like to assemble level design "building blocks" into things like rooms and hallways, and then combine them into prefabs.

Comment
Add comment
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

2 Replies

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

Answer by superpig · May 03, 2011 at 07:00 PM

Sure can:

http://forum.unity3d.com/threads/37721-Combine-Children-Extented-(sources-to-share)

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 PrimeDerektive · May 03, 2011 at 07:02 PM 0
Share

Wow, thanks! Can't believe I didn't come across this in my searching endeavors. Have you used this recently? Does it work in 3.x? Could I conceivably do what I described in my question?

avatar image superpig ♦♦ · May 04, 2011 at 11:28 AM 0
Share

Yep, I used it last weekend - works fine in 3.0, though you need to make sure that you save the file as 'CombineChildren.cs' and not the combinechildren_c295.cs or whatever the default file name is. The one big limitation the script has is that it generates one mesh per material, ins$$anonymous$$d of combining all the materials into a single mesh with submeshes; I've got a modified version that does that which I'm preparing to post quite soon, if that's what you need.

avatar image PrimeDerektive · May 04, 2011 at 01:05 PM 0
Share

Nice! Yeah, I was playing with it last night. Pretty neat stuff, but yeah I noticed the materials issue. Any ETA on when you'll have that prepared? :)

avatar image PrimeDerektive · May 04, 2011 at 01:30 PM 0
Share

In a perfect world it would also automatically somehow uv-unwrap the combined mesh and merge the materials into a texture atlas or something; but I imagine that's outside the realm of possibility, hehe.

avatar image PrimeDerektive · May 04, 2011 at 01:41 PM 0
Share

Waaait a $$anonymous$$ute, once your script is completed, couldn't you export the .obj with sub-meshes and the materials, and bring it into ultimate unwrap and maybe combine all the materials into 1?

Show more comments
avatar image
1

Answer by marcos4503 · Feb 20, 2019 at 02:45 PM

Hi!

If it is an option, you can use the Easy Mesh Combiner tool. It can combine your meshes quickly and very easily, 100% through the editor. It's a wonder to combine the meshes of the scenery and even get more performance! You simply select which GameObjects or children that should have the meshes combined, right-click and combine everything!

Worth a try. Here is the tool link (Available in the Asset Store) https://assetstore.unity.com/packages/templates/systems/easy-mesh-combiner-mt-138805

Comment
Add comment · Show 4 · 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 zereda-games · Feb 20, 2019 at 02:48 PM 0
Share

you think it is necessary to post on a 9 year old post...? just sayin..

avatar image marcos4503 zereda-games · Feb 20, 2019 at 02:54 PM 2
Share

I was just walking the internet, and since I recently got a lot of experience with the subject, I thought it would be useful for anyone who is currently reading!

avatar image zereda-games marcos4503 · Feb 20, 2019 at 03:00 PM 0
Share

10 4 rubber ducky.

avatar image zereda-games · Feb 20, 2019 at 02:49 PM 0
Share

looks like we have been on here about the same amount of time ;)

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

2 People are following this question.

avatar image avatar image

Related Questions

Undo.RecordObject isn't working. 7 Answers

Can you run custom code when changing scene perspective? 1 Answer

How to change a selection effect in editor 0 Answers

Save/Attach content of editorWindow to a gameObject 1 Answer

Creating a toolbar with toggleable buttons 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