Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
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 hide 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 $$anonymous$$eshCollider 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 $$anonymous$$eshRenderer.

3 Replies

· Add your reply
  • Sort: 
avatar image
4

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

Not sure when this was added but as of 4.2.0f4 you can turn the alpha all the way down on your wireframe display in Preferences. Would this 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 shitty 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

While this 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.hideFlags = HideFlags.HideInHierarchy; This 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.

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

Splitting a Mesh into Submeshes 2 Answers

RunTime hole in mesh not working 0 Answers

Mesh collider component doesn't have mesh. 0 Answers

Problem with convex Mesh Colliders 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