x


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

BerggreenDK gravatar image

BerggreenDK
2.7k 153 118 139

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

Waz gravatar image

Waz
7.2k 66 63 104

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

By RSS:

Answers

Answers and Comments

Topics:

x5624
x490
x258
x93
x73

asked: Aug 07, 2011 at 09:10 PM

Seen: 3680 times

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