I'm trying to make a simple HELP screen and I would like to make the backgorund none-translusive aka alpha = 0.
I've tried with:
GUI.color = new Color(1.0f , 0.0f , 0.0f , 1.0f);
GUI.contentColor = new Color(0.0f , 1.0f , 0.0f , 1.0f);
GUI.backgroundColor = new Color(0.0f , 0.0f , 1.0f , 1.0f);
None of them seems to make the background/layer less transparent?
What have I missed?
What shader do you use?
Answer by Waz
Aug 07, 2011 at 09:45 PM
The images themselves in the default skin are semitransparent. You'll need different images.
Okay, so DrawTexture or just use a texture as parametre? I've tried using a Texture 128x128 with repeat on, but it still just sits in the middle of my window. Got any links to an example? been trying to find one.
You need to make a GUISkin and apply it to GUI.skin before your actual GUICode... http://unity3d.com/support/documentation/Components/class-GUISkin.html
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
6 People are following this question.
BUG: GUISkin not updating in real-time when using name reference.
Edges on Transparent GUI - Still not working
Simple GUI Question
Problems controlling the GUI skin / style
GUI.skin persisting through other OnGUI calls