How to hide the tool panel in SceneView programatically?

I’m creating custom SceneView to edit some UMA mesh stuff. As part of this, I don’t want the user changing the edit mode, or thinking that they can, so I’d like to hide the tool panel. Is this possible? I cant seem to find anything on the SceneView…

Check out Tools.hidden

Thanks!
My first try at that failed (I put the Tools.Hidden = true in OnOpenStage, and Tools.Hidden = false in OnCloseStage).

But it appears to be a bug in the events on the Stage causing it, not the Tools.Hidden. When calling GoToStage(), the OnOpenStage and OnCloseStage are both being called. Then both are called again when the stage closes. Maybe it’s just a bug in the version I am using (2021.3).

Maybe not a bug, just a misunderstanding on my part.

I only ever used this for the live stage editors which had a clear toggle to enter the “edit mode”, and in this context I had no issues, so I wouldn’t know to tell you about OnOpen/CloseStage.

There are probably some caveats with that (after I’ve seen the docs) because you typically have the stage present at all times (unless you turn it off completely; multiple stage views do not call OnOpen again; edit: or as you said, a switch will call both to denote transition). Perhaps you should try OnEnable/Disable, but I’m not 100% sure what’s the best course of action if you want to react to Unity events like that.