Quantcast
Channel: Latest Questions by famadori
Viewing all articles
Browse latest Browse all 8

Multi-resolution!!! Sprite and GUI

$
0
0
I solved the problem, I created a GUITexture and put all indicators of position and texture size to zero, put the scala x and y size to zero too. Once positioned the alert by the GameObject transform object and made a script with parameters of height and width of the image and size you want to adiconar every GUI that calculates the size of the gui according to the resolution. X = 0.5 / (Screen.Width / Screen.Height) * (ImageScaleX / ImageScaleY) Y = 0.5 It worked perfectly. It really is necessary to treat all my sprites, texture and background for GUI code to comply with the resolution of my screen? There is nothing automatic? I've looked all do 2 days and find only solutions to be applied to all objects in all of the screen. There is at least one solution?

Viewing all articles
Browse latest Browse all 8

Trending Articles



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