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.
Answer by Edwige
Apr 27, 2011 at 04:43 PM
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 :)
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.
Answer by awest
Oct 18, 2014 at 03:00 PM
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.
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.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
1 Person is following this question.
GUI buttons look fine on full screen but distorted otherwise?
Change the texture of a GUI BUTTON
Change GUI.Button Texture on runtime
A Button, A Boolean and 2 Textures.
GUILayout.Button scales texture wrong