Hello everyone,
I’m having a problem which I’m starting to think that is a bug of the tool. I’m trying to do a UI customizing the styles, I need a GUILayout.SelectionGrid but it is not working correctly with the Padding attribute. I show you the sample:
myArray[i] = GUILayout.SelectionGrid(myArray[i], possibleStrings, 1, "toggleRadios", GUILayout.Width(95 * Screen.width/100));
The style is configured as follow:
![alt text][1]
And the result is this:
![alt text][2]
As you can see the objective is that the content of the buttons (two images, the grey and the blue with the check) is narrower so the “check” does not cover the text. So I need to modify the “padding right” attribute in my style.
But when I do that, something wrong happens. In the next image I show the same style just changing the padding right to “1”:
![alt text][3]
And the result:
![alt text][4]
I does not understand what is happening but in my opinion is a problem with unity because the same technique is being used in a “GUILayout.Toogle” and it is working perfectly (In this case I can use the Toggle).
Thank you in advance,
Nacho.
[1]: http://unityspain.com/uploads/monthly_03_2014/post-19866-0-73148200-1395746623.jpg
[2]: http://unityspain.com/uploads/monthly_03_2014/post-19866-0-61883700-1395746582.jpg
[3]: http://unityspain.com/uploads/monthly_03_2014/post-19866-0-12271200-1395746675.jpg
[4]: http://unityspain.com/uploads/monthly_03_2014/post-19866-0-75547000-1395746645.jpg
↧