Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by CarbonTech Software · Jan 11, 2011 at 05:01 AM · transparencyalpha

Dashboard Alpha Transparency

Can someone help explain to me a couple things about the "Use Alpha in Dashboard" setting under player settings?

a) How do I use it? When I enable it and set the main cam to "Don't clear flags" the widget just flashes and goes all weird. I also tried setting the background to black with 0% opacity with no luck.

b) Can it be used with OnGUI function objects? I'm trying to create a simple widget to display the current server/player count. I was trying to make the widget so that it functions more like the OnGUI objects are actual widgets instead of an embedded Unity player on the dashboard.

Other Info: I'm running Snow Leopard if that makes a difference. The few threads I've seen about this feature were all created back in 2007 when Unity was still in 1.7.

Thanks in advance.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Jessy · Jan 11, 2011 at 07:52 AM

As the documentation states, you have to actually set the alpha channel of the rendered image. "Don't Clear" isn't appropriate; you need to ensure that you're writing alpha information for every pixel. "Solid Color" is the easiest way to do it. Notice that the color has four components. The alpha matters, and is actually written. Here's a shader you can use to visualize your alpha information. Unfortunately, you can't render after UnityGUI, so this only applies to all other scene geometry(*)

Shader "Alpha to RGB" {

SubShader { Tags {Queue = Overlay} ZTest Always Blend DstAlpha Zero Pass {Color (1,1,1)} }

}

I don't know what you mean by "more like an actual Mac widget and less of a GUI object inside a Unity widget frame". I don't know what happens with GUI alpha writing presently; I don't like UnityGUI and my skills with it are rusty, so I'll leave you with that info, and let somebody else flesh out this question with information as to whether OnGUI writes to all color channels, or just RGB.

(*) unless UnityGUI only writes to RGB.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CarbonTech Software · Jan 11, 2011 at 08:15 AM 0
Share

Hmm, I tried setting the camera to Solid Color with the background color opacity at 0% with still no luck. I also tried with a cube with a transparent diffuse shader (opacity set to 20% and then 0%) with no change. I dunno... maybe I'm doing something wrong...

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Render part of object with alpha of other object 1 Answer

An Outline like the Editor does in game, with transparency 1 Answer

Does the Particle Animator work with transparent shaders? 1 Answer

Wrong texture-arranging order 0 Answers

Decal Alpha Blend 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges