Hi Guy,
I started working on a option-menu, but the ScrollView doesn’t work. The ScrollBar has always the maximum size, so i can’t scroll up and down. I hope you can Help me. Thank you.
public Vector2 scrollPosi = Vector2.zero;
…
private void OnGUI()
GUI.Box(new Rect(Screen.width / 2 - 200,Screen.height / 2 - 200, 400,400), imageOption);
if(Network.isServer)
{
GUILayout.BeginArea(new Rect(Screen.width/2 - 190, Screen.height/2 - 120, 400, 300));
scrollPosi = GUILayout.BeginScrollView(scrollPosi, false, true, GUILayout.Width(380),GUILayout.Height(250));
GUILayout.BeginHorizontal();
GUI.Label(new Rect(0, 5, 70, 30), “Playername:”, myStyle);
name = GUI.TextField(new Rect(140, 0, 200, 30), name);
GUILayout.EndHorizontal();
…
GUILayout.EndScrollView();
GUILayout.EndArea();
