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 zeeawk · Sep 29, 2012 at 07:21 PM · guiclickwindowthroughblocking

Blocking Click through on GUI components

I have looked though the Answers and Forums on how to do this and can't find any concrete answers. The only thing I can assume is that Unity has been completely ignoring this issue for years. Perhaps because they are revamping the GUI stuff for Unity 4. Perhaps because people didn't yell loud enough? I dunno.

You should be able to mark GUI components in a way the doesn't pass clicks through to any other objects.

  • You shouldn't have to do special things in other scripts to detect whether the click was on a GUI component at the time.

  • You shouldn't have to create dead zones in your game for GUI components to live.

  • You shouldn't have to make entire windows draggable.

  • You should just be able to build your GUI components set your no click through option and forget about it.

Am I missing something? Is there a way to actually do this? Thanks!

Comment
Add comment · Show 4
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 Fattie · Sep 29, 2012 at 07:27 PM 0
Share

i completely agree with you!

Am I missing something? - No

Is there a way to actually do this? - No

Here's a full analysis from long ago ! .........

http://answers.unity3d.com/questions/267597/capturing-events-in-unity.html

avatar image hvilela · Sep 29, 2012 at 07:56 PM 1
Share

It's sad but you're not missing anything and Unity GUI have many other issues, for example the excessive draw calls. To address all this issues, you have to replace Unity GUI for a GUI framework, like EZGUI or NGUI.

avatar image gregzo · Sep 29, 2012 at 09:19 PM 1
Share

+1 Just don't use Unity GUI.

In my opinion, NGUI is amazing. And you can try for free. It's currently discounted at 49$, but at 100 it's still well worth it.

avatar image Fattie · Sep 30, 2012 at 09:06 AM 0
Share

TBC ....... unity's GUI (the two they offer) is crap and you shouldn't use it, exactly as Greg says. nobody uses it and nor should the questioner! :)

But the problem is deeper - unity just does not have an "event" model. As Bunny explains on the linked question, he's right, this is a Choice, and it's not necessarily a bad thing .. but it's how it is. It makes some things very easy and some things strange if you're used to program$$anonymous$$g a "normal" system like osx.

BTW yes NGUI is worth at least $500. One of the things that makes me sick about this planet is the silly low prices set on the Asset Store.

If it was $500, that product for example could afford tremendously more develeopment.

0 Replies

· Add your reply
  • Sort: 

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

13 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Stop clicking through a GUI window 2 Answers

Prevent mouse click through GUI Texture?!?! 0 Answers

Let Click go through GUI 1 Answer

How will i get new line in window data? 1 Answer

GUI.Window error. InvalidOperationException: Hashtable.Enumerator: snapshot out of sync. 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