• 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
Question by ccaffeycn · Jul 03, 2014 at 04:00 PM · guibuttonpopup

Not able to interact with GUI pop up menu

I have a button that when the user clicks on it pops up a GUI menu, when this pops up the game is paused. When this menu pops up unity thinks that the mouse cursor is still over the button. If the user goes to interact with the menu by clicking on it, unity responds to this click as if the user has clicked on the button again.

I have tried disabling the collider on the button and changing the layer to ignore raycast. Neither of these has worked. I even tried to change the mouse position but that doesn't work because input.MousePosition is read only. I put a debug.log statement in the OnMouseOver() function which is how I know unity thinks im hovering over the button instead of interacting with the GUI menu.

Any ideas on how to fix this?

Comment

People who like this

0 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 ccaffeycn · Jul 08, 2014 at 06:04 PM 0
Share

Update: while in play mode if I click on the button and the menu pops up and then I click completely out of unity and then back into unity the menu works fine. Any ideas of what could cause this?

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by JusticeAShearing · Jul 04, 2014 at 04:39 PM

Well, it may be something to do with the pausing feature, which is currently beyond me, but here's a tutorial which covers an inventory GUI, which hasn't the problem. The little slots that you get at the end are able to be clicked on, and it doesn't pause the game.

https://www.youtube.com/watch?v=NsZ_XBCPR2s&list=PLB4DA4F8BDC3B82EE&index=32

Comment

People who like this

0 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 ccaffeycn · Jul 08, 2014 at 06:03 PM 0
Share

Thanks for the comment, but this tutorial didn't really help.

avatar image JusticeAShearing · Jul 09, 2014 at 03:56 PM 0
Share

When I'm creating my menu for leaving the game I will know more about it, so I'll try to get back to you then.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Overlapping GUI Button priority 3 Answers

Text pop up when mouse over gui button 2 Answers

Is Mesh Collider Optimal for GUI? 2 Answers

Making a button's placement independent of resolution 1 Answer

UI Buttons 3 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