I wanted to make a serverlist and used a scrollview in which i dont have much experience and the result is crashing.What am i doing wrong? Also , how can i make the scrollview have these coordinates (20,20,Screen.width-20,200) Edit: Oh come on , its been over 2 weeks
(comments are locked)
|
|
Check out http://unity3d.com/support/documentation/Components/gui-Controls.html Or you might want to try this:
var scrollViewVector : Vector2 = Vector2.zero; var innerText : String = "I am inside the ScrollView"; function OnGUI () { // Begin the ScrollView scrollViewVector = GUI.BeginScrollView (Rect (25, 25, 100, 100), scrollViewVector, Rect (0, 0, 400, 400));
} since i have no experience in scroll views , can you implement that code in my occasion?
Dec 20 '10 at 01:45 PM
YeOldeSnake 1
(comments are locked)
|
|
You're calling "GUILayout.EndScrollView();" inside your for loop. It should be outside. So it should be more like this...
Well, the question is almost ancient, but you're right ;)
Dec 09 '12 at 02:19 AM
Bunny83
(comments are locked)
|
|
hey man. i want to add a button but i cant help me please =( cheers. use something like if (GUI.Button (Rect (125,220,50,20), "thees")){ //do my stuff } In the OnGUI function You should ask new questions yourself though and not post your questions as an answer to someone else's question
Mar 05 '11 at 01:59 PM
YeOldeSnake 1
(comments are locked)
|
