Hey,
I have created an editor window, and let’s say I have the following button:
if(GUILayout.Button("Button"))
{
Application.OpenURL("http://unity3d.com/");
}
How can I make it so the that button is always positioned at the bottom of the editor window?
Thanks,
Alex
rus89
2
Hello @alexanderameye, you simply have to add GUILayout.FlexibleSpace();
before the button. In your example it should look like this:
GUILayout.FlexibleSpace();
if(GUILayout.Button("Button"))
{
Application.OpenURL("http://unity3d.com/");
}
I hope this will help you.