I'm trying to get the scroll bars to be shown all the time. Mainly I want the vertical, but to test it out i also added the horizontal as well. It flicks between the correct size to the the size of my screen.
void OnGUI(){
//Begin Scroll Slide
scrollPosition = GUI.BeginScrollView(new Rect(10, 10, 800,600), scrollPosition, new Rect(0, 0, 220, 200), alwaysShowHorizontal:true, alwaysShowVertical:true);
//Add contect to the scroll area.
//Figure out how to shrink box and have words wrap correctly.
GUI.Box(new Rect(10, 10, 1300, 500), textAsset.text);
//Dend Scroll Slide
GUI.EndScrollView();
}
Is that the way to correctly us this? I looked at the Scripting Reference here, Did i do it wrong?