- Home /
Question by
DaiMangouDev · Apr 03, 2016 at 05:56 PM ·
c#editor-scriptingeditorwindowlayout
How do I create custom editor window layout through script ?
Hi guys,
How do I generate a custom editor Window Layout through script ?
I have multiple editor windows , I wish to have a script that will launch all my windows at once and arrange then in tha particular way.
this is an example of the method I use now , which just launches all my windows but dos not arrange them the way I want then to be.
internal sealed class Toolbar : EditorWindow
{
[MenuItem("Tools/CustomWindows")]
static void init()
{
EditorWindow win = EditorWindow.GetWindow<Toolbar>(typeof(SceneView));
EditorWindow.GetWindow<window1>(typeof(Toolbar));
EditorWindow.GetWindow<window2>(typeof(window1));
}
this method is inefficient.
xmpl.jpg
(18.7 kB)
Comment
Your answer
Follow this Question
Related Questions
Setting variables in public class to values from editor script 3 Answers
Editor GUI text becoming misaligned 0 Answers
Close script tab in VS, from script 0 Answers
Multiple Cars not working 1 Answer
Show camera view in an editor window 1 Answer