Search Issue Tracker

Fixed in 5.3.0

Votes

0

Found in

3.5.6f4

Issue ID

492850

Regression

No

Shaking GUI.BeginScrollView area if viewRect < position and alwaysShowVertical = true

IMGUI

-

To reproduce:
1. Open project Unity355Test
2. Open TestScene
3. Attach MyUI script to an object
4. Run

or Drop this GUI into a scene to reproduce:

public class MyUI : MonoBehaviour {

public Vector2 scrollPosition = Vector2.zero;
void OnGUI() {
scrollPosition = GUI.BeginScrollView(
new Rect(0, 0, 200, 400),
scrollPosition,
new Rect(0, 0, 200, 300),
false,
true);

GUI.Button(new Rect(0, 0, 100, 20), "Top-left");
GUI.Button(new Rect(120, 0, 100, 20), "Top-right");
GUI.Button(new Rect(0, 180, 100, 20), "Bottom-left");
GUI.Button(new Rect(120, 180, 100, 20), "Bottom-right");

GUI.EndScrollView();
}
}

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.