I was hoping that I could add this:
GUILayout.BeginHorizontal();
GUILayout.Space(50);
GUILayout.EndHorizontal();
to simply shift my text to the right when I begin the the following area
GUILayout.BeginArea(new Rect(Screen.width-220, 120, 1000, 1000));
The Entire code is:
GUILayout.BeginArea(new Rect(Screen.width-220, 120, 1000, 1000));
GUILayout.BeginVertical(tables);
foreach (KeyValuePair<string, string[]> Entry in PrivateTables)
{
GUILayout.Label("Private Table #" + tableNumber, tables);
foreach (string users in Entry.Value)
{
GUILayout.BeginHorizontal(s);
GUILayout.Label(users.Split(' ')[0], s);
GUILayout.FlexibleSpace();
GUILayout.Space(40);
GUILayout.Label(users.Split(' ')[1], s, GUILayout.Width(1000));
GUILayout.EndHorizontal();
}
tableNumber++;
GUILayout.BeginVertical();
GUILayout.Space(10);
GUILayout.EndVertical();
}
GUILayout.EndVertical();
GUILayout.EndArea();
}
I have tried adding:
GUILayout.BeginHorizontal();
GUILayout.Space(50);
GUILayout.EndHorizontal();
- After and befor ehte BeginVertical(tables); statement just after the BeginArea.
- After and before the GUILayout.Lable(“Private Table#”…); statement (although it doesn’t make sense to include it after).
- Above the GUILayoutBeginVertical(). Space, and EndVertical Statement
I am stumped…=/