Before updating to Windows 10 you may need to return your Pro license. More information here

Creating a GUI Button background texture

How would I go about creating a background texture that works like the default one, where it somehow looks good no matter how large you make the button?

The default texture isn't listed in the texture picker, so I can't see what it actually looks like.

more ▼

asked Apr 27, 2011 at 04:25 PM

avatar image

588 100 83 97

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

I don't really see what background image you are talking about :p But if it is an example scene, you are probably talking about skybox, you can assign that in render settings (http://unity3d.com/support/documentation/Components/class-RenderSettings.html) or in your camera settings !

Hope it helps :)

more ▼

answered Apr 27, 2011 at 04:43 PM

avatar image

181 8 10 27

No. Look at a GUI Style's Button properties. For each state there is a Background property, which is filled in by default with "button". That is what I'm referring to.

Apr 27, 2011 at 05:15 PM Gillissie
(comments are locked)
10|3000 characters needed characters left

Sorry for reviving the old post, but I found this while searching for this exact solution. Eventually I found this tutorial and it answered all my questions. http://forum.unity3d.com/threads/creating-custom-gui-skins-part-one.113055/

To address this specific question. You can set the border as fixed by giving it a pixel size in the gui skin (about the pixel width of your boarder in the image). It will use that setting to stretch your custom background image in a specific way to prevent blurry/pixelated/crappy button backgrounds. Now you should be able to make a small image and have it show up correctly at any size.

more ▼

answered Oct 18, 2014 at 03:00 PM

avatar image

398 1 4 5

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Apr 27, 2011 at 04:25 PM

Seen: 3650 times

Last Updated: Oct 18, 2014 at 03:00 PM