- Home /
Hide wireframe of selected object/mesh
Whenever a gameobject containing a mesh is selected in the editor its mesh is overlayed with a wireframe. I know you can change the general color of that wireframe, but can I somehow change the color of it for only one object, or possibly don't show it at all?
Answer by hardwire · Jun 14, 2011 at 11:08 AM
You can hide the wireframe by calling
EditorUtility.SetSelectedWireframeHidden(renderer, true);
Unfortunately this only works for perspective SceneViews. In othrographic mode the lines still show.
Answer by naruse · Mar 16, 2010 at 11:18 AM
Sorry, in the editor scene?, not possible to change it just for one object :(, maybe you can create a gizmo for it that assembles the mesh... but I'm not sure you are willing to do that :)
Answer by ZonYX3D · Oct 18, 2013 at 03:00 AM
Sorry I'm starting to use unity but can you tell me where I need to put this command "EditorUtility.SetSelectedWireframeHidden(renderer, true); ? Thanks!
You would have to call it from an editor script. See Unity manual section "extending the editor" and $$anonymous$$enuItem documentation for a simple example which adds a command to the editor's top menu.