Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[Cardboard] Drag/Drop/Move objects with gaze pointer

Discussion in 'AR/VR (XR) Discussion' started by otacon1k, Feb 27, 2016.

  1. otacon1k

    otacon1k

    Joined:
    Feb 27, 2016
    Posts:
    1
    Hello Guys!!

    I've just started creating games in Unity3d for google cardboard so im kinda newbie

    I know how to make script which will move up/down/forward the object after target it with gaze pointer and click but i wonder how to make basic drag and drop script.
    I mean...

    target the object with your head (gaze pointer)
    click the button
    move the object in each direction using your head (up,down,left,right)
    drop the button = drop the object

    Thank you for every help! I wll really apreciate it!
    greetings
     
  2. CogumeloSoft

    CogumeloSoft

    Joined:
    Dec 28, 2012
    Posts:
    86
  3. Subkhan-Sarif

    Subkhan-Sarif

    Joined:
    Apr 12, 2016
    Posts:
    1
    @otacon1k did you find any solution? I need to do something similar with your problem.
    and @CogumeloSoft he clearly says that he has been able to do basic stuffs mentioned in the link you attached.
     
  4. naxrius

    naxrius

    Joined:
    May 12, 2016
    Posts:
    1
    @Subkhan Sarif
    Bumping because I need to do this as well. Anyone figure it out?
     
  5. cloud_canvas

    cloud_canvas

    Joined:
    Mar 31, 2015
    Posts:
    14
    Posting another bump for this, would love to know if you came up with something. Just started digging into Cardboard (err, Google VR, I guess it is now) today.
     
  6. chrsny

    chrsny

    Joined:
    Oct 2, 2016
    Posts:
    3
    This is a bit late, but I actually created a youtube video tutorial on how to do this if you're still interested!
     
  7. baroquedub

    baroquedub

    Joined:
    Aug 27, 2015
    Posts:
    11
    Thanks @chrsny. Very useful :)
     
  8. thetopaz

    thetopaz

    Joined:
    Sep 9, 2018
    Posts:
    6
    What replaced OnGazeTriggerStart() & OnGazeTriggerEnd() in 2018? I am following this 2016 tutorial by chrsny
     
    shawpixel likes this.
  9. thetopaz

    thetopaz

    Joined:
    Sep 9, 2018
    Posts:
    6
    I assume OnPointerClickDown() is the replacement? But its not working with the code in the 2016 video @chrsny