Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Tijmen · Apr 01, 2010 at 01:51 PM · guidisabletransparentenable

Gui.Enable transperancy

I am disabling my GUI, although i dont want the textures to be transparent. The manual1 does describe the behaviour clearly, but can i counter it?

Comment
Add comment · Show 1
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 KHopcraft · Apr 01, 2010 at 06:10 PM 0
Share

A little more specific and you will get an answer.

4 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by straydogstrut · Apr 16, 2010 at 02:06 AM

A similar question was posted here a few days ago. Some of the suggestions there include:

  • using guiText/guiTextures
  • switching your text fields to use the GUI.Label style (ie non-interactive)
  • catching input before calling the GUI

Hopefully it will be useful to you.

Comment
Add comment · 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
1

Answer by Eric5h5 · Apr 02, 2010 at 01:13 AM

As far as I know, this is hard-coded behavior and can't be changed.

Comment
Add comment · 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
1

Answer by RElam 1 · Jun 07, 2010 at 08:08 PM

Found a nice solution to this, looks like the behavior is not to hardcode alpha to .5, but to multiply it by .5. Therefore, setting the color to (1,1,1,2) results in the same color after this hardcoded math is done. So, for disabled controls, just do

GUI.color = new Color(1,1,1,2);

and set it back when done and your control's appearance will not change. Least it's working for me in the editor so far.

Comment
Add comment · 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
0

Answer by Lucas Meijer 1 · Apr 01, 2010 at 09:11 PM

You can specify how GUI elements should behave in which situations by creating your own guiskin, or modifying an existing one. Look up "GUISkin" in the help.

Comment
Add comment · Show 2 · 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 Eric5h5 · Apr 02, 2010 at 01:14 AM 0
Share

Are you sure about that? Because there are no settings I can find that override the "make all controls semi-transparent when GUI.enabled == false" behavior.

avatar image Lucas Meijer 1 ♦♦ · Apr 02, 2010 at 11:17 AM 0
Share

I thought it the transparency was just part of the texture used. I might be wrong, will have to look it up.

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

Enable/Disable Game Object With GUI Button 1 Answer

Re Enable C# script on camera 1 Answer

Enable/Disable children / group of objects 0 Answers

how to perform undo action in unity? 2 Answers

OnGUI Button 1 Answer


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