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
3
Question by Chubzdoomer · Oct 08, 2014 at 09:37 AM · mouseignore

(New GUI) Make elements ignore mouse?

I ran a search for this but couldn't find anything, as most of the questions and answers pertained to the old GUI system rather than the new one.

That being said, is there any way to tell an element of the new GUI to ignore the mouse all-together? I'm not just talking about ignoring mouse clicks, but even ignoring the mouse's position.

The reason I ask is because I'm trying to design a tooltip that simply consists of a panel with text inside it. The tooltip only becomes visible when the cursor hovers over a button, at which point it's constantly updated to match the mouse's position (and nudged over a bit on the X axis).

The problem I'm having with this approach is that since the mouse cursor moves a little quicker than the tooltip's position updates, you're sometimes able to cover the tooltip before it gets out of the way, which in turn also covers the button (and, for that split second, prevents the button from being clicked!). This isn't a game breaker since it does eventually get out of the way, but it's annoying nonetheless.

I also tried removing the tooltip's panel so that it consisted only of text, thinking that perhaps the panel itself was the culprit, but unfortunately text appears to "block" the cursor as well.

If anyone knows of a way to keep the new GUI elements from registering the mouse's position or even an obscure workaround, I would greatly appreciate it!

Thank you in advance!

Comment
Add comment · Show 2
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 fafase · Oct 08, 2014 at 09:46 AM 0
Share

Have you tried Interactable toggle?

avatar image Chubzdoomer · Oct 08, 2014 at 09:53 AM 0
Share

@fafase: It looks like neither panels nor text elements feature an "Interactable" property by default, so unless I'm missing something that option isn't available.

2 Replies

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

Answer by Chubzdoomer · Oct 09, 2014 at 09:37 AM

I was just given the solution by one of Unity's developers on the forum.

To make a canvas or one of its elements completely ignore all mouse input, simply add a Canvas Group component to that canvas or element (Add Component->Layout->Canvas Group), then turn off Blocks Raycasts.

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 kalibcrone · Jun 30, 2017 at 05:34 PM 0
Share

Great thanks! This is especially helpful when using UI in VR when I don't want the mouse to accidentally highlight or select elements.

avatar image
0

Answer by unimechanic · Oct 08, 2014 at 03:03 PM

You should also ask in the Beta group where our developers can help.

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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

object with multiple colliders ignoring mousedown for some. 3 Answers

Cannonball not shooting according to the rotation of the cannon. 1 Answer

Setting the mouse position to specific coordinates 5 Answers

How to I get an object to disappear when I use the mouse to click on it? 1 Answer

MousePos To Transform 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