I’m new to using UI Builder, it is a wonderful experience. This makes creating an editor UI easier.
However, while I was busy creating elements I didn’t find a way to recreate the Toolbar GUI.
I can create it via C# and add it manually but it would be nice to have it available through the UI Builder somehow. It’s a style that I’d like to apply but how can you apply an existing editor style? i.e Toolbar and Toolbar button.
Thanks for trying the UI Builder! You’re right. The Toolbar elements are currently missing from the catered list of elements under Unity. I’ll try to add them soon. In the meantime, if you enable development mode you should see ALL available elements under the Project section of the Library in the UI Builder, including all the Toolbar elements under the UnityEditor namespace.
To enable development mode, open the Help > About Unity window and type “internal”.
This is great , Not partially the feature itself, but just how you activate it! lol
I’ve worked with unity for years and have never heard about development mode, sorry to derail the thread (but is there any documentation on what development mode actually does?)
it probably should be an internal thing hence “internal”. I’ve heard of it before but never use it
In this case it would be handy. Thanks @uDamian
It’s mostly just to enable a bunch of extra functionality that you really only need if you work at Unity, but sometimes, it enables functionality that can help someone work around an issue until it’s fixed, so…ya. Don’t expect any docs on this feature anytime soon.
Sooo… I tried this out, and now I can’t seem to disable it. Reopening the project doesn’t do the trick. Is there any way to disable development mode, or does the project get permanently marked as such?
Just repeat the “internal” in the about window, it acts as a toggle
Huh. It worked! I should have figured that out tbh. Thanks.
Just tried it and you only need to enable this in the library
Yeah they changed things along the way. In earlier versions there was no Toolbar component visible in the library view unless you enabled the internal development mode of Unity.
In later versions the Toolbar got added and now with the even more recent versions there is indeed the toggle for Editor Extensions Authoring due to the fact that UI Toolkit can be used for both Runtime and Editor UI.
That toggle is supposed to prevent you from using Editor components in Runtime UI.
I just reported a bug because the toggle doesnt behave like a toolbar toggle at all. bravedrearyerin
Is there an update on recreating the Toolbar GUI for a non-game runtime UI?