- Home /
How to set the Ongui's GUILayout.BeginArea in a panel???
ScrollView is generate by Ongui.
can i set the ScrollView plugin to a panel as a child under the panel.(or other solution)
because i want to the GUILayout do not cover other panel.
I do not want to use ngui. can i solve this problem??
Please help me T.T.....

cover other panel 
GUI.skin = myskin;
scrollPosition = new Vector2(0, downsave);
GUILayout.BeginArea(new Rect(ww, 60f, Screen.width, Screen.height - 160), GUI.skin.window);
scrollPosition = GUILayout.BeginScrollView(scrollPosition, false, true);
GUILayout.BeginVertical(GUI.skin.box);
// int a = 0;
// foreach (string item in ProductName)
for (int i = 0; i < ProductName.Length; i++)
{
string name = ProductName[i] + "\n\nUpload Date:" + UploadDate[i] + "\n";
GUIContent gi = new GUIContent(name, CoverPictureb[i]);
if (GUILayout.Button(gi, GUILayout.Width(420), GUILayout.Height(100)))
{
proID = ProductID[i];
Debug.Log(ProductName.Length);
}
}
GUILayout.EndVertical();
GUILayout.EndScrollView();
GUILayout.EndArea();
Comment
Why are you using the old GUI when there is new powerful UI system?
Your answer
Follow this Question
Related Questions
GUILayout ArgumentException when combining with GUI.Tooltip 1 Answer
Text position of a game object moved upon a key input and overlaid on the other image. 0 Answers
(Solution) - Can't use GUILayout stuff in PropertyDrawer.OnGUI? 2 Answers
Default text / Already written text on GUI Text Field. 1 Answer
non-displaying GUILayout elements when using yield WaitForSeconds() 2 Answers