• 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
1
Question by NafisKhan · Aug 21, 2014 at 09:23 PM · meshesrigclothingmakehuman

Adding clothes to a character rig in game

I can import characters including clothes from Makehuman. I can enable and disable clothes in game to change it's outfit. But I want to add additional clothes which are not already included with Makehuman characters and are in separate prefab. These additional clothes could be having bones/rigs attached with them or not. But I want to Instantiate the cloth on a button click and then add it to the animated character and it's rigs too, so that it matches with the animation and will look like the character is wearing that dress/cloth. Any idea how can I do that?

Comment
Add comment · Show 1
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 NafisKhan · Aug 21, 2014 at 01:49 PM 0
Share

Anyone has any idea about it?

1 Reply

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

Answer by Cherno · Aug 21, 2014 at 09:32 PM

It's possible, and it's pretty easy. Here is everything you need:

  1. The script itself

http://answers.unity3d.com/questions/44355/shared-skeleton-and-animation-state.html

  1. A little bit of extra cautionary information from myself:

http://answers.unity3d.com/questions/668332/weightless-bones-dont-get-added-to-skinnedmeshrend.html

If any parts of the body show through and worn clothes, you could try using a seperate material for each limb and making that one transparent when it is covered.

Comment
Add comment · Show 2 · 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 NafisKhan · Sep 11, 2014 at 12:15 PM 0
Share

Thanks. It works. However, I didn't understand what you suggested about see through problems. But I would rather modify the cloth meshes a little bit.

avatar image Cherno · Sep 11, 2014 at 12:33 PM 0
Share

When, say, a shirt covers the underlying arm mesh, it's possible that the mesh of the arm clips through the cloth mesh when the arm is angled in a certain way, at the shoulders or the elbow. This can be alleviated by just making the part of the underlying mesh invisible if it's supposed to be covered.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to Make a Character Wear Clothes from 3rd Party Sources? 0 Answers

Bad performance using entity component system 0 Answers

How can I force a mesh to render behind all other meshes? 0 Answers

How to deform a mesh at runtime? 0 Answers

Clothing help 0 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