- Home /
GUI.toggle and GUI.horizontalSlider to GUItextures.
Dear community,
I got a question about the GUI. I'm like just beginning to code in C# so my knownlage is pretty low on the subject.
Currently In my project I'm using GUI Buttons, since scaling with resolutions was a problem I made a script does the scaling right for each resolution but based on GUItextures.
Now I'm also using GUI.Toggle and the GUI.HorizontalSlider. The problem with this is that the GUI elements don't scale with the screen when the resolution changes So these need to become the GUItextures aswell or atleast seen by unity as GUItextures, since the basic toggle and silder are fine enought to use as graphics.
Anyone know how to convert the GUI.Toggle and the GUI.HorizontalSlider to GUItextures? So they will work in my scaling script :)
thanks in advance,
Cheers