EditorWindow - multiple input fields in one row

I would like to have it like here:

alt text

But there it only works because it is a Vector3 which takes 3 input fields. I would like to implement it like a little calendar where you can have inputfields for year/month/day in one row. I would like the user to be able to pick a valid date. Is it possible or should I stop dreaming?

Thanks in advance!

It’s very easy. GUILayout allows you to control how the elements are layouted. All elements you put between GUILayout.BeginHorizontal and GUILayout.EndHorizontal are arranged horizontal.

By default you are in a GUILayout.BeginVertical group, that’s why the elements are aranged vertical.

The point is that you can nest those groups to create your whole layout.