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 ina · Dec 02, 2014 at 11:21 AM · uiraycasttoucheventsystem

uGUI clicks going into gameobject raycasts

Is it possible to have uGUI touch/clicks not to cause raycasts on gameobjects in the scene?

Comment
Add comment · Show 6
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 SaraCecilia · Dec 02, 2014 at 04:12 PM 0
Share

Does this help solve your problem? http://answers.unity3d.com/questions/467619/catch-gui-click-to-avoid-raycasting-after-a-click.html

avatar image ina · Dec 03, 2014 at 07:04 AM 0
Share

No, the link you sent is OnGUI - which is a completely different system than uGUI.

Also, can you please don't abuse your close question power, especially if you don't understand the question? Thanks

avatar image bubzy · Dec 03, 2014 at 07:17 AM 1
Share

i got round this by hovering a cube in front of the camera which is enabled when the gui is shown, its a bit hacky but it works as the cube captures the collisions ins$$anonymous$$d of the gameobjects. my cube covered the whole screen, but you could position it to just cover the gui elements. or perhaps just use a box collider with no renderer

edit: i havent used uGUI, so this may be totally irrelevant, sorry :(

avatar image ina · Dec 03, 2014 at 07:27 AM 0
Share

I read in forums that GraphicsRaycaster seems to be a solution for earlier beta releases of 4.6 but I cannot get it to work(?) http://answers.unity3d.com/questions/845816/graphicraycaster-blocking-priority-ugui-1.html

avatar image etaxi341 · Dec 03, 2014 at 12:51 PM 0
Share

I think there is an Checkbox in your Canvas, where you can say that your Raycasts should not go through uGUI Textures.

Show more comments

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

28 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 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 avatar image avatar image

Related Questions

Holding down UI Button and shooting raycast from touch position doesn't work simultaneously:(( 0 Answers

How to select an object with TOUCH and change its animation 2D 1 Answer

How to touch select 3D objects 2 Answers

Casting a ray to detect the touched object in world space does not work 3 Answers

if ( Physics.Raycast ( ray, out hit, Mathf.Infinity, LayerMask ) ) not working? 2 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