- Home /
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.
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. 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.
Your answer
Follow this Question
Related Questions
How to place/add a HD image/picture in background of my game? 0 Answers
Problem with texture to reset and re-enter the same texture 0 Answers
GUI.button Texture shows up in Unity but doesn't show on android device. 1 Answer
GuiTexture (Touch button) unfollow camera! 1 Answer
Gui Button zoom 1 Answer