Before updating to Windows 10 you may need to return your Pro license. More information here

scroll window vertically

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

Regards, BEN

more ▼

asked Jan 05, 2011 at 01:13 PM

avatar image

59 61 47 51

How's it not working right? What's wrong with it? What's your current code?

Jan 05, 2011 at 02:33 PM Justin Warner
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Also, check here:

/* 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



Near the end, it might be what you need.

more ▼

answered Jan 05, 2011 at 02:40 PM

avatar image

Justin Warner
6.8k 45 55 108

its ok.....a scrollview appears with a fixed text area, i wanna gradually scroll automatically without affect text area size while program starts execution...is it possible

Jan 06, 2011 at 04:56 AM ben

Just alter the code... Can't expect people to write your code for you.

Jan 06, 2011 at 05:05 AM Justin Warner

k...cool....like flash news movement

Jan 06, 2011 at 05:26 AM ben
(comments are locked)
10|3000 characters needed characters left

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.

more ▼

answered Mar 08, 2011 at 10:50 AM

avatar image

59 61 47 51

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Jan 05, 2011 at 01:13 PM

Seen: 5904 times

Last Updated: Jan 06, 2011 at 05:01 AM