Search Unity

[SOLVED] GVR Reticle not expanding when an object is Gaze

Discussion in 'AR/VR (XR) Discussion' started by diegoalonso, Jul 1, 2016.

  1. diegoalonso

    diegoalonso

    Joined:
    Jul 1, 2016
    Posts:
    5
    Hi!
    The reticle does not expand when start gaze at an object. Screenshots below.
    Before Gaze
    1.png

    On Gaze Start
    2.png


    Desire: 3.png (skip the color changing)
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,440
    Check in the working scene if there is some script attached to that green box,
    maybe gazetarget script or something similar.. (check layers also)
     
  3. diegoalonso

    diegoalonso

    Joined:
    Jul 1, 2016
    Posts:
    5
    The script attached changes the box color but the growth of the reticle is implemented in GvrRecticle.cs. (GoogleVR/Scripts/UI/).
     
    Dumblegore likes this.
  4. munro1gr

    munro1gr

    Joined:
    Jul 1, 2016
    Posts:
    3
    Make sure that the "Physics Raycaster" is attached to the "Main Camera" object. Then be sure that "GvrReticle" is a child of the "Main Camera".
    GvrMain
    Head
    Main Camera
    Main Camera Left
    Main Camera Right
    GvrReticle
    Also make sure that the cube has a Box Collider... I think you need that... I think...
     
  5. diegoalonso

    diegoalonso

    Joined:
    Jul 1, 2016
    Posts:
    5
    Both things are as you said but still not working.
     
  6. diegoalonso

    diegoalonso

    Joined:
    Jul 1, 2016
    Posts:
    5
    [SOLUTION] You must add an Event Trigger to the object plus the Collider (no need to set any Event Type).
     
    Hoodooloo, pramitd, abby25 and 5 others like this.
  7. fatbluefred

    fatbluefred

    Joined:
    Sep 30, 2016
    Posts:
    3
    I have spent the last hour trying to get the Reticle expanding when gazing at an object. In GVR-1.1 the Physics Raycaster need to be the "GVR pointer Physics Raycaster" not the Unity's own Physics Raycaster. Hope this saves someone else some time.

     
    unity_CY0hkjIoFS7IFw likes this.
  8. sj631

    sj631

    Joined:
    Dec 23, 2016
    Posts:
    22
    make sure all colliders between camera and target objects are turned off.
     
  9. pharms

    pharms

    Joined:
    Sep 22, 2017
    Posts:
    1
    A further important hint: The main camera must also be tagged as MainCamera.
     
    misterjono likes this.
  10. nupur7

    nupur7

    Joined:
    Feb 15, 2017
    Posts:
    9
    reticle is not expanding on object gaze.any help?
     
  11. jarrodl

    jarrodl

    Joined:
    Jul 13, 2017
    Posts:
    1
  12. FullHeartGames

    FullHeartGames

    Joined:
    Jul 21, 2015
    Posts:
    18
    Thank you this ended my hours of looking for a solution!
     
  13. mbarsainyan21

    mbarsainyan21

    Joined:
    May 1, 2018
    Posts:
    1
    I already have an event trigger attached. but the pointer is still not expanding for me. Any suggestions?
     
  14. datacommand

    datacommand

    Joined:
    May 2, 2018
    Posts:
    1
    I had to expand "Max Reticle Distance" in the GvrReticlePointer to get my reticle to recognize my Sphere Collider and expand the reticle.
     
    ofsouzap and mgear like this.
  15. Dumblegore

    Dumblegore

    Joined:
    Feb 3, 2016
    Posts:
    2
    This solved my issue! Thanks!
     
  16. mcaintu

    mcaintu

    Joined:
    Nov 2, 2018
    Posts:
    1
    I had the same issue. Solved by selecting the main camera and checking the 'Tag' in Inspector. It needs to be set as MainCamera. As soon as I changed it, boom! upload_2018-11-2_15-35-46.png
     
  17. Ceci1070

    Ceci1070

    Joined:
    Nov 7, 2018
    Posts:
    2
    thank you mcaintu . working with tagging MainCamera. :)
     
  18. elainelzh

    elainelzh

    Joined:
    Mar 19, 2019
    Posts:
    1
    This solved my same problem! Thank you!
     
  19. marcolbx

    marcolbx

    Joined:
    Mar 4, 2019
    Posts:
    11
    The gaze is working on the preview, but when i build the project on my phone, isnt... .
    Help
     
    musickgm likes this.
  20. Samridhi1

    Samridhi1

    Joined:
    Jan 14, 2019
    Posts:
    1
    SOLUTION: Make sure you added GvrPointerPhysicsRaycaster and NOT GvrPointerGraphicsRaycaster as a component in Main Camera!!!
     
  21. vikrantmandake4554

    vikrantmandake4554

    Joined:
    Dec 29, 2021
    Posts:
    1
    Gvr reticle pointer shows in the desktop but after running there is not show in mobile application