- Home /
Any way to hide the gizmo of a game object in the editor?
I have an editor script attached to an empty game object. My editor class displays two custom gizmos of its own, but there's the annoying 3rd one getting in the way which belongs to the game object itself. I've looked through the docs but haven't found a way yet.
Thanks
If you click the Gizmos button in the Editor, top right hand corner of the editor view, you can make the gizmos smaller and turn some of them off altogether.
This is what I'm talking about. You can move the slider down to make the gizmos smaller in the editor, or check boxes to turn them off.
@jacobschellenberg - game objects have no gizmos. That's why I asked OP to clarify what he meant.
Thanks, yes, the 3 axes, but my understanding is that those controls affect whole classes of object types. I want to hide only 1 specific gizmo of 1 object. The reason is, I'm creating an editor utility and I can't expect users to reconfigure all their gizmos. I hoped there might be some undisclosed script code to let me achieve that.
Answer by Akusan · Sep 09, 2017 at 04:06 PM
Looks like you can hide them by script:
http://answers.unity3d.com/questions/851470/how-to-hide-gizmos-by-script.html
or using this: https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnDrawGizmosSelected.html?from=Gizmos
Your answer
Follow this Question
Related Questions
see colliders in editor 1 Answer
Are textured/z-clipped gizmos possible? 0 Answers
Unity Editor - Create a custom scene view 0 Answers
Select object by selecting gizmo or handle? 1 Answer
Why won't the DrawGizmo attribute work in the editor 1 Answer