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 /
  • Help Room /
avatar image
1
Question by DrummerB · Mar 04, 2016 at 11:47 AM · uiraycastvrunity5canvas

Laser pointer style UI interaction in VR

I'm trying to implement the laser pointer style interaction for world space UI in VR. Similarly to how it's done in the experimental Unity VR editor or Tilt Brush:

Image

Basically I need to replace the mouse with an arbitrary world space raycast from the motion controller.

I've seen two different approaches so far, both of which had some issues.

An older tutorial from Oculus uses a custom GraphicRaycast and InputModule to implement gaze aka. look-at controls. This approach can't really be adapted to motion controllers. You can only interact with UI that is on the screen. With motion controllers it is possible that neither the UI nor the controller are visible and interaction should still work.

The VR Samples project uses Physics.Raycasts and colliders instead. I think this should work with motion controllers as well, since you just need to change the raycast parameters. But this project doesn't seem to use actual UI at all. It's just simple meshes instead of world space canvases.

I would really like to figure out how to implement a world space UI canvas with laser pointer style interaction. Is it not possible at all to do arbitrary world space raycasts into a canvas?

Thanks!

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 Cascho01 · Jul 26, 2017 at 04:23 PM 0
Share

Same question for me

avatar image SpiralConDave · Aug 31, 2017 at 07:09 PM 1
Share

Same here. I don't want to juggle Oculus vs Cardboard vs Vive etc API and systems. I have a transform that points at something whether that's my eye camera or hand-held controller, and it should just work.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by uyar · Jun 05, 2017 at 02:13 AM

i will try to add eyegazer to the controler, and test the sampel scenes, i will post the results if i dont forget.

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 SpiralConDave · Aug 31, 2017 at 07:07 PM 0
Share

Did you forget?

avatar image
0

Answer by conigliocattivo · Sep 01, 2017 at 08:24 AM

Hi @DrummerB @SpiralConDave

did you find a good solution for this problem? I have the same issue and my actual solution is to use a Physics Raycasts such as the one of the Unity VR Samples and simply attach colliders to every UI Canvas element. It works but I was just wondering if there is a better solution.

Thanks, Antonio

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

9 People are following this question.

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

Related Questions

SteamVR and canvas interaction? 2 Answers

OnPointerEnter blocked by something 2 Answers

SteamVR Laser OnPointerClick not work with UI Element 0 Answers

GVR Recticle Pointer doesn't show up on the UI 0 Answers

Detect MouseOver/Click for UI Canvas Object 5 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