ScrollView positioning

Hello!

I’m currently working on a multiplayer FPS game using Unity3D 4.5 and CSharp. I have a chat window that I use a scrollview for but no matter what values I enter it always place itself in the top left corner but I want it in the bottom left corner right above the textfield.

Here’s the coe I currently have for the window:

Vector2 v = new Vector2(0, (Screen.height / 2) - (Screen.height / 8));
v = GUILayout.BeginScrollView(v, "box", GUILayout.Width(Screen.width / 3), GUILayout.Height(Screen.height / 4));

And the textfield:

InputString = GUI.TextField(new Rect(0, (Screen.height) - (Screen.height / 16), Screen.width / 3, Screen.height / 16), InputString);

Any help is appreciated!

Thanks in advance

GUILayout.anything always uses the topleft-most available space
Use an AREA and it’ll work

Thanks for the quick answer!

How do I do that if I want a scrollable window as a chat window? Could you give me a small example? I want a textfield in the bottom left corner and right above that I want the scrollable chatwindow.

Thanks in advance