iam new to unity...... i have a hud display or window top of my screen with contents,.....whilw running the pgm...it should display as a specified size while time goes with in that fixed size contents should shown slowly..... i used vertical scroll bar ...its not working properly
/* ScrollView example */
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));
// Put something inside the ScrollView
innerText = GUI.TextArea (Rect (0, 0, 400, 400), innerText);
// End the ScrollView
GUI.EndScrollView();
}
use GUI.ScrollTo(10,10,100,100) increase x or y axis values in update or GUI function by means of a variable ... if u wanna scroll the contents inside the scroll view according to the voice over played in the background, get the audio length and assigning it in a variable and use it.