scalable GUI

Hi, all! i am in the final stages for the creation of my game. One of my biggest problems is the GUI. When you select different window sizes, the GUI buttons will be squished and layered, and the background remains the same. Which means that a small window crops the background image, and a large one has this ugly blue space around the background image.

Is there any way I could make both the GUI and the background image dynamically scalable?

Thanks!- YA

:frowning:

Use GUITexture as the background, check out this link, Eric5h5 answered your question:
http://forum.unity3d.com/threads/69250-GUITexture-Resize?

  1. set the GUITexture PixelInset to zero,
  2. set the Transform Scale to X=1,Y=1.

Now the GUITexture will fill the screen and scalable with different resolution.
Note: if you want to render the 3D contents in front of the GUI, you need to setup a new second camera.

For scalable GUI buttons, there have many discussion in forum already, check out that links:
http://forum.unity3d.com/threads/68248-Scale-game
http://forum.unity3d.com/threads/41295-Solved-How-to-best-create-a-resizeable-GUI?

Ugh. That’s confusing. Let’s start with the background…
How do I do these two things?

Hey! Thanks for the help! I did all you said to do with the gui texture. The image definitely fits, but now it is cropped. How do I fix this?

Image in game:


Original image:

Is it just because the window is not big enough?

bump