- Home /
Problem with modifying scrollPosition on android
Hi. I made a simple credits scene showing a scroll view with labels in it where in the update function the scrollPosition variable is modified so it scrolls down. This works on PC, but on my android device nothing happens.
The update function where the scollPosition.y is modified
void Update()
{
scrollPosition.y += Time.deltaTime*scrollSpeed;
}
And the OnGUI
void OnGUI()
{
GUI.BeginGroup(new Rect(0,0,Screen.width,Screen.height)); //note the 250 width and 305 height compared to the scrollview size
scrollPosition = GUILayout.BeginScrollView(scrollPosition, false, false, GUIStyle.none, GUIStyle.none, GUILayout.Width(Screen.width), GUILayout.Height(Screen.height));
GUILayout.Label("\n\n\nCredits", largeLabel);
GUILayout.EndScrollView();
GUI.EndGroup();
}
Comment
Best Answer
Answer by frankyboy450 · Jan 27, 2014 at 04:07 PM
wow... when you won the last game it set the time.timescale to 0. In the credits scene I didn't set it to 1 again...
FIXED.
Your answer
Follow this Question
Related Questions
Store/Stack Items 0 Answers
Multi Touch Disable on Virtual Joy-pad (FPS) 0 Answers
Button as a child of a button 0 Answers
GUI Scroll View 1 Answer
Touch Input with Event Trigger. How to handle with it properly. 0 Answers