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
0
Question by SEVO · Feb 22, 2019 at 03:31 PM · raycastvrcanvas

SteamVR and canvas interaction?

I am starting out using SteamVR V2.2.0 and I am having trouble finding a tutorial on how to point a controller at a world-space UI and interact with it.

Does anyone know of a tutorial that works well with world space UIs and SteamVR?

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

Answer by inbal · Aug 13, 2019 at 10:41 AM

Hi, Need your help about the UI Interaction: (Unity 2019.2, SteamVR 2.2, Oculus S)

I work with UI Buttons, and it's work ok But when I add them a Scrollbar, the scrollbar doesn't move it's self and the UI Buttons that Content to him. Am I missing something here or it has to be the same action that I do with the UI Buttons with add box collider & UI Element when I'm using the UI Objects with steam VR Thank's Inbal

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
0

Answer by unity_J016ZU_VZQzYAg · Feb 22, 2019 at 07:47 PM

 1. Create a normal button  
 2. add a box collider component to it
 3. scale the box collider to fit the button (depth needs be > 0).
 4. add the interactable script component
 5. add the UIElement script component
 6. add functions to the UIElement event box.

Comment
Add comment · Show 6 · 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 SEVO · Feb 25, 2019 at 02:30 PM 0
Share

Thanks for the reply, I gave it a try and then realized that I forgot to mention I was trying to get this working on a laser pointer. I have since imported the Vive Input Utility from the asset store that provides the desired UI interaction, but again a big thank you :)

avatar image unity_J016ZU_VZQzYAg SEVO · Feb 28, 2019 at 02:21 AM 0
Share

Should also work with the laserpointer script that S$$anonymous$$mVR 2.2.0 provided

avatar image SEVO unity_J016ZU_VZQzYAg · Mar 04, 2019 at 09:40 AM 0
Share

Hi Unity_j I implemented these steps with the normal S$$anonymous$$m_VR_Laser_Pointer.

Added the button. Added a box collider with a depth greater than 0. Scaled the box collider. Added the Interact-able script to the Button. Added the UIElement script to the button. Added a function to the On Hand Click event.

The problem I am getting is that nothing happens when I click, the laser is colliding with the Box collider but no click event is being generated.

In the UIElement component there is a click button in the inspector, when i click this I get a NullReferenceException on UIElement.cs:84 of UIElement.cs

Adding the Valve.VR.InteractionSystem to my Event system as an input $$anonymous$$odule stops this error, but doesn't fix the event not being received by my script.

??

Show more comments
avatar image zhuoyuelyu · Jun 21, 2020 at 02:29 AM 0
Share

Hi~ do you know how to make "Slider" works as well? I tried your steps, but it doesn't work. I could see the yellow hint to pull the trigger (as shown below), but the slider does not move with my hand after I do so. Do you know what might be the problem? Thanks! alt text

06-20-hand.png (393.1 kB)
avatar image inbal · Jun 21, 2020 at 03:23 AM 0
Share

Curve UI - Work Perfect With S$$anonymous$$m VR 2 assetstore.unity.com/packages/tools/gui/curved-ui-vr-ready-solution-to-bend-warp-your-canvas-53258

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

243 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 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 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 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 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 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 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 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 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

Block some raycasts from world space canvas and ignore others? 0 Answers

Laser pointer style UI interaction in VR 2 Answers

Rendering a Canvas as Screen Space - Camera - Google Cardboard 0 Answers

Block physics raycast on gameobjects if UI element was clicked 3 Answers

Activate Button only by looking at it? 0 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