Quantcast
Channel: Questions in topic: "issue"
Viewing all articles
Browse latest Browse all 827

GUI Scrollbar can't be clicked

$
0
0
I made a scrollable GUI that looks right and works with the scrollwheel. I just can't understand why it's not being able to scroll by clicking the thumb on the side. Here's the code, everything looks fine. //Variable Instances public Vector2 scrollPosition = Vector2.zero; void DoLoadWin(int winID){ GUILayout.BeginVertical(); GUILayout.Space (1); if(loadMain){ if (Screen.height < 320) scrollPosition = GUILayout.BeginScrollView (scrollPosition, GUILayout.MaxWidth(170), GUILayout.MaxHeight(250)); else scrollPosition = GUILayout.BeginScrollView (scrollPosition, GUILayout.Width(170), GUILayout.Height(250)); GUILayout.Label(descMain); GUILayout.EndScrollView (); if (Screen.width == 800) GUILayout.Space(50); if(GUILayout.Button("Load", GUILayout.MaxHeight(100)) && loadMain) Application.LoadLevel("Main"); } GUILayout.EndVertical(); } By the way, i'm using Fantasy Colorable UI, may be it's its fault?

Viewing all articles
Browse latest Browse all 827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>