i have found a scrip of the Vertical Scrollbar. But i'm kind of confused where to put the content of the scrollbar? like texts and images that can be scrolled vertically
here's the gui part of my code
function OnGUI() {
GUI.skin = customSkin;
if(openWindow) {
GUI.Window(0,Rect(x,y,700,500),InstructionWin,"INSTRUCTIONS");
}
}
function InstructionWin(windowID:int) {
sbar=GUI.VerticalScrollbar (Rect (25, 100, 100, 200), sbar, 1.0, 0.0, 10.0);
if(GUI.Button(Rect(82,200,200,20),"BACK"))
{
openWindow=false;
}
}
function OnMouseUp() {
openWindow=true;
}