• 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 Rob9891 · Oct 23, 2011 at 09:34 PM · gamegta

Clothes and haircut

Hey guys i was just wondering how i would make a marker for the main character to collide with that would take him to a screen where you can choose what hairstyle he has and what clothes he has on. (If you are going to say something negative then dont answer) Thank you in advance.

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
2
Best Answer

Answer by Psychlade · Oct 24, 2011 at 05:08 PM

I don't see why anyone should give you a negative answer; we were all beginners once. ;) That said, I'm still relatively new to scripting with Unity, so I understand how overwhelming it can be at times.

To get you started, let's go through a quick example scenario:

Say your playing The Sims, and you move your character to the dressing room. As soon as you get in the room, you wouldn't want your character to enter the customization screen right away, right? You'd want the freedom to move around in the room, just like you would in real life.

Here's where the logic comes in at: You click the mirror on the wall, and suddenly your taken to the customization screen! :D

Unity handles situations like these with triggers. Triggers are what actually trigger events to happen when you reach specific points. However, you wouldn't always want these events to be triggered even if you do reach a certain area. Imagine if you had to collect 100 coins to unlock the next area and go through a door.

To set this trigger up, refer to this. After you set it up with the help of the documentation, go into your script and make 'isTrigger' false as described here in the chosen answer till you want the ability to actually edit your character.

If you need further help with triggers, watch this video. These guys are great, and offer tons of free videos on how to use Unity, and even have projects to test how well you've learned Unity.

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 gfr · Oct 24, 2011 at 05:54 PM 1
Share

The extensive 3dPlatformer tutorial also handles triggers etc. rather accessibly.

avatar image Rob9891 · Oct 25, 2011 at 09:55 AM 1
Share

Thank you!! helps alot

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

getting udp package info inside unity (GlovePIE) 0 Answers

Customizing 0 Answers

Making a game like gta 2 Answers

Weather for game 1 Answer

I want to Make missions without leaving a scene. 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