• 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 chrismcrae5712 · Feb 24, 2014 at 05:31 AM · visibleequipreplace mesh

Armor Equipping for RPG Game

Ok so I think I found an easier way to do this. Again though, It relates to a script but this script seems like it'd be easier to code. Here's what I am doing.

Character Model = 90% Naked, has loincloth only. Each individual part of the body is its own mesh.

Head,Torso,Arms,Hands,Loincloth,Legs,Feet

Now if I duplicate the Torso and use the SkinnedMeshRenderer I can change the mesh and material to be that of an Iron Cuirass. (Imported Model)

So Sweet! Works great. However, I don't want him to always have the IronCuirass on as it's an RPG game that he can get new and improved armor or wants to run around shirtless. Plus my Torso mesh is same size as armor so it kinda looks cheesy. So I want to make Torso to be invisible while Iron Cuirass is equipped. (I have an inventory and Equip Menu that I can add script to, to make that happen. Except like i've said in other questions, my coder gave up on our game due to family conflicts. So I'm kinda trying to learn this whole coding process on my own. This is the "Stupified" version of what I am asking.

Character has no shirt. Runs down the road, finds an Iron Cuirass on the ground. Picks it up. (Adds 1 Iron Cuirass to inventory) Enters Inventory and equips Iron Cuirass. Character Skin Torso IsVisible = False Iron Cuirass IsVisible = True

How would I implement that into a script? Java or C# doesnt matter. Even UnityScript.

Thanks!

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by chrismcrae5712 · Feb 26, 2014 at 12:39 AM

If anyone is looking for the same answer. I figured out how to do this. Just let me know :)

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 Descallele · Aug 15, 2016 at 03:23 AM 0
Share

How do I do this?

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

20 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

Related Questions

Hiding Objects Not Working (Active/Enable) 2 Answers

Problems with Game object visible when active is false 2 Answers

How do I use RayCasting to play a sound when my player is close to an enemy 1 Answer

Terrain edit on multiplayer 0 Answers

Problem is "renderer.isVisible" 3 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