• 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 hardwire · Jun 14, 2011 at 11:14 AM · meshcolliderhidewireframe

Hide MeshCollider wireframe when selected

I have an object containing MeshCollider but I don't want to see its mesh in the Scene view when I select the object (I have a lot of handles and other stuff on top of the object). I know that I can $$anonymous$$de the standard wireframe by calling

 EditorUtility.SetSelectedWireframeHidden(renderer, true);

But it doesn't work for MeshCollider as it wants a renderer. Any other way?

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 hardwire · Jul 27, 2011 at 11:49 AM 0
Share

Hmm, I can see that in Unity 3.4 I can hide all MeshCollider gizmos by deselecting the checkbox in the Gizmos menu. But I want to hide only gizmo of one particular object and I want to do that from a script, so that the user doesn't have to worry about it. Similarly to hiding wireframe of MeshRenderer.

3 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by Jiven · Sep 25, 2013 at 12:23 AM

Not sure when t$$anonymous$$s was added but as of 4.2.0f4 you can turn the alpha all the way down on your wireframe display in Preferences. Would t$$anonymous$$s work for what you're after?

Edit > Preferences > Colors > Wireframe Active >

alt text

Move the (A)lpha slider all the way to the left.

You'll notice my s$$anonymous$$tty helmet is selected and the rotate gizmo is active.


hide_wireframe.png (165.1 kB)
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 TheWarper · Jul 04, 2015 at 12:00 AM 0
Share

YES! Thank you Jiven! Worked perfectly!

avatar image
2

Answer by jonas-echterhoff · Jun 14, 2011 at 12:47 PM

W$$anonymous$$le t$$anonymous$$s is not an immediate fix, Unity 3.4 (coming very soon) will have an option to turn on or off scene view gizmos by type (ie you can just disable the visualization of the different colliders using checkboxes).

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

Answer by logicalerror · Jul 22, 2017 at 02:49 PM

You can do myMeshCollider.$$anonymous$$deFlags = HideFlags.HideInHierarchy; T$$anonymous$$s prevents it from being shown in the scene

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.

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

Green Wireframe Length 1 Answer

Cube shaped mesh collider side detection 2 Answers

Error: AddComponent asking for "MeshCollider" which is not a Unity engine type. 2 Answers

Ray cast not hitting the backside of mesh collider attached to a spherical mesh object 0 Answers

mouse dissapear 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