FOVE SUPPORT CENTER

Using FoveInterface.GetGazeRays in Unity

Comments

4 comments

  • Avatar
    Iikka Pohjola

    Well right after asking I figured it out. In case anyone else is wondering, you need to create an object of the FoveInterface and use that to call the method, instead of making a FoveInterface.GetGazeRays() call that works for GetEyeRays.

    0
    Comment actions Permalink
  • Avatar
    David Pradell

    Hey likka, I'm having the same problem. When you say "need to create an object of the FoveInterface", how you do that? Sorry to be ask such a dumb question. Thanks

    0
    Comment actions Permalink
  • Avatar
    Iikka Pohjola

    private FoveInterface foveInterface = FindObjectOfType<FoveInterface>();

     

    Then you can do FoveInterface.EyeRays eyeRays = foveInterface.GetGazeRays(); or directly get Ray objects with foveInterface.GetGazeRays().left or .right 

     

    Hope this helps!

    1
    Comment actions Permalink
  • Avatar
    David Pradell

    Works like a charm. Thank you very much!

    0
    Comment actions Permalink

Please sign in to leave a comment.