Quantcast
Channel: Questions in topic: "selectiongrid"
Viewing all articles
Browse latest Browse all 94

GUILayout.SelectionGrid with GUIStyle ignores textColor

$
0
0
![alt text][1] [1]: /storage/temp/6620-example.png Ok, I have a GUILayout.SelectionGrid going that seems to work fine except for one thing. It only ever uses the Normal state for textColor, regardless of whatever I'm doing to the buttons in the selectionGrid. I don't know if I'm doing something wrong, or if GUIStyle doesn't play nice with selection grids or what. I've set up the style using the Unity editor, and assigned it in the following code (where raceSelected is an int, races is a string array, and menuStyle is my GUIStyle obj): GUILayout.BeginArea(new Rect(65, 5, 150, 550)); raceSelected = GUILayout.SelectionGrid(raceSelected, races, 1, menuStyle, null); GUILayout.EndArea();

Viewing all articles
Browse latest Browse all 94

Trending Articles



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