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 awesomeaustin316 · Sep 27, 2014 at 09:03 PM · charactercustom

Character Customization

When I say this, I do not mean the extensive library of games such as Saints Row. I have a prefab set up with different clothing , and within this prefab if I activate one and deactivate the other, it fits perfectly giving it that mix and match freedom.
Main Prefab -Warriors Bones --Misc. Bones -Hair1 (Active) -Hair2(Not Active)

I know I would probably use gameObject.Setactive, but how ? Say I have Menu Buttons set up to the side, and each button with activate hair, and deactivate the last. Or even arrows that when clicked go through a cycle. If anyone could point me into the right direction it would be wonderful. I figured a script stating Vars for each Hair piece would be somewhere to start ?

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 awesomeaustin316 · Sep 28, 2014 at 07:51 PM 0
Share

I can understand actually. Do you know of any tutorials that would cover this ? I can pick up things pretty easily without needing to go through vigorous basics learning, but so far coding has convinced me I need to take learning a different way.

avatar image Cherno · Sep 28, 2014 at 08:30 PM 0
Share

Take a look at htse two threads, they show how you can have clothing that fits a skeletal strucurre perfectly by re-using the rig you use for the character modoel.

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

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

1 Reply

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

Answer by christoph_r · Sep 27, 2014 at 11:28 PM

If that's all you need you can utilise Unity's editor to the fullest (if your game object you wish to customise isn't instantiated in run-time): Simply create a public list of game objects for each type of part you want to swap. You can then use your menu buttons to cycle through it, by storing an int as an index for the currently active game object (let's call it currentIndex). When the player clicks the cycling button, disable the current game object using your list and int variables, then update your currentIndex variable and do basically the same thing to enable the new game object. Hope that gave you some ideas on where to take this.

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

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

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

Related Questions

GUI letters number text custom 0 Answers

Switching between scripts within the inspector using code 1 Answer

Customisable Characters/Objects 0 Answers

Where do I post scripts for the Unity community? 1 Answer

Rigidbody FPS controller? 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