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 site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
6 People are following this question.
Edges on Transparent GUI - Still not working
BUG: GUISkin not updating in real-time when using name reference.
GUI.skin persisting through other OnGUI calls
Simple GUI Question
Problems controlling the GUI skin / style