Hi,
I’m having a lot of trouble getting the toggle control to display properly. If I use the built-in skin with all defaults in a standard GUI.Toggle it works fine (of course). If I export the default skin images and create a custom skin with it and then change the font to something larger, then the toggle control’s toggle image stretches and distorts badly (all other controls seem to work fine).
I have played with all the settings for border, padding, margin, overflow, etc. but none of them can seem to fix the stretching.
Any help appreciated.

Have you got the skin set up correctly for the “on” state (onNormal, etc)?
Hi,
Thanks for your post.
I’m using the skin package downloaded from your site and linked all back up.
Out of the box, the skin that is downloaded from your site has a wider toggle than is used in the the default skin, so the download isn’t exactly the built-in skin. I correct that by tweaking the border values (in case that matters).
Then, putting a toggle into a simple GUI.Toggle in an empty test scene basically works, even if I change the font.
But if I put the toggle into a GUILayout.Toggle, where the layout consists of a few nested sections, the bottom of the control always gets stretched downward as part of the vertical stretching that layout does to it. Having the control stretch is fine, but it’s distorted vertically like the image I posted previously with horizontal distortion. I have tried endless tweaking of the values while it runs and cannot get rid of it except by using a really big bottom overflow amount that forces the bottom to be clipped, but doesn’t render the control properly then.
I have had this same trouble with the toggle before on other projects, but I always give up and override the toggle to another custom style with bitmaps to simulate it. I will do the same here.
I’ll try to extract this out and submit a test project with a bug report if I can.
Cheers,
Brett
