How do I add multiple "tabs" to an editorwindow

Hi Unity,


I can’t seem to find any documentation on how to accomplish this within a single editor window.
I’m looking to find a way to partition up my Editor Window into tabs like the Lightmapping and Occlusion Culling windows do.

See Image.

Thanks

Hello,

You can use EditorGUILayout.Toolbar. Like this:

tab = GUILayout.Toolbar (tab, new string[] {"Object", "Bake", "Layers"});
switch (tab) {
...
}

Hey i have written a blog related to:How to get started with Editor Window. In this first blog you can find how to create toolbars in your custom editor Window. Unity Editor Window

Hello,

Not sure you can to that as tabs in the editor. It is possible to move some windows and create tabs, like the ones above the buttons. However, not sure you can do tabs like that without coding, or even with code actually.