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 tafadzwajoseph · Feb 24, 2017 at 06:02 PM · vr

UI Buttons for GEAR VR not working

I am using classes using from VR sample projects for Oculus . I can interact with other objects by attaching the VRInteractiveItem and another script to determine what happens when a user clicks on the Gear touch pad. BUT i am failing to make the user interact with the UI buttons even if i add the VRInteractiveItem . Can I be kindly assisted. @alishka

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

2 Replies

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

Answer by jmgek · Feb 24, 2017 at 08:12 PM

UI buttons use raycasts to trigger events like OnMouseClick(), OnHover(), etc.

You can't interact with the UI buttons unless you design your own UI handler on the remotes or Raycast on the headset from where you're looking. VRInteractiveItem is for physical objects with colliders attached. They don't handle raycasts.

This is how I solve VR buttons: https://www.assetstore.unity3d.com/en/#!/content/79540 But you can use this solution too: https://unity3d.com/learn/tutorials/topics/virtual-reality/user-interfaces-vr

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 tafadzwajoseph · Feb 25, 2017 at 08:08 AM

Thank you @jmgek

I have eventually found the solution also with the help of https://unity3d.com/learn/tutorials/topics/virtual-reality/user-interfaces-vr

since VRInteractiveItem requires colliders I had to put a collider on my button and then attach the VRInterectiveItem and the script i want to call.

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 jmgek · Feb 25, 2017 at 09:06 AM 0
Share

Could you mark my comment as answered to help others out.

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

How to create real water? 5 Answers

Getting log from unity and ECG physiological markers using VB script 2 Answers

Removing unneeded shaders Shader Unsupported Hidden/VR/BlitCopyFromTexArray 0 Answers

playing audio with the GoogleVR Reticle Script 0 Answers

Trying to create a camera that follows player and mimics headset tracking(HTC Vive) 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