Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

VR Laser Pointer that works with Unity UI???

Discussion in 'Unity UI & TextMesh Pro' started by trappist-1, Nov 10, 2018.

  1. trappist-1

    trappist-1

    Joined:
    Mar 26, 2017
    Posts:
    388
    All day I have been trying to use SteamVR_LaserPointer and box colliders and all I have figured out is how to click a button. But scrolling and dragging, text selection is ridiculously complicated.

    I need a better way to do this, I was told Unity offered world class VR solutions, yet I can't even figure out how to click a TextField or scroll a ScrollRect with a raycast.

    There are many horribly outdated tutorials all over and I waste so much time learning things that dont work.

    How do I raycast from Vive controller and click, scroll, drag, position cursor?

    Please help me raycast and select some text from a text field, or set cursor position, or just any of the normal UI interactions!
     
    Last edited: Nov 10, 2018
  2. trappist-1

    trappist-1

    Joined:
    Mar 26, 2017
    Posts:
    388
    This is very hard to believe that the only thing holding me back is some stupid UI pointer. I have tried so many things and every one has some flaw or mysterious limitation.

    I can't use VRTK anymore because it is obsolete.

    I would pay $$$ now for a simple pointer that works, but even the ones on the asset store are reportedly not working anymore.

    I just developed an entire game only to watch it burn because of Unity's broken ass UI system and VRTK not keeping up with the times.


    So I'm pretty much screwed now.
     
    Last edited: Nov 11, 2018
  3. EMO2oo

    EMO2oo

    Joined:
    Oct 18, 2018
    Posts:
    1
    I was having a similar problem. I ended up using VIVE Input Utility from the asset store. Hope it helps.
     
    Last edited: Nov 13, 2018
  4. yunhan0

    yunhan0

    Joined:
    Aug 18, 2016
    Posts:
    5
    You can try VR UIKit which is on the asset store. I basically used it in every of my VR project to set up the laser pointer that quickly works with Unity UI system. It supports Oculus, VIVE, Gear VR, and Oculus GO.
    (By the way, I'm also the creator of this asset, so I'm happy to answer any of your questions if you have issue using it).
     
  5. trappist-1

    trappist-1

    Joined:
    Mar 26, 2017
    Posts:
    388
    Thanks for the suggestion. Quick question, does it properly implement drag and hover events? most pointers I have used in the past are fine for simple click events but are lacking in the more advanced UI interactions..
     
    yunhan0 likes this.
  6. yunhan0

    yunhan0

    Joined:
    Aug 18, 2016
    Posts:
    5
    Yes, it implements drag, hover, scroll events!
     
    trappist-1 likes this.