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

How to make a GUI that isnt alpha transparent?

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?

more ▼

asked Aug 07, 2011 at 09:10 PM

avatar image

2.8k 156 139 160

What shader do you use?

Aug 07, 2011 at 09:31 PM synapsemassage
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

The images themselves in the default skin are semitransparent. You'll need different images.

more ▼

answered Aug 07, 2011 at 09:45 PM

avatar image

7.8k 68 103 116

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.

Aug 07, 2011 at 09:56 PM BerggreenDK

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

Aug 17, 2011 at 12:13 PM col000r
(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: Aug 07, 2011 at 09:10 PM

Seen: 4457 times

Last Updated: Aug 17, 2011 at 12:56 PM