Home Forums Unity SDK HasGazeFocus doesn't work

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11269
    Jordão
    Participant

    Hello! I am trying to do an simple function that deletes one sphere that I have added to my scene if the sphere has the focus of the user, using the HasGazeFocus property, but I can’t make it work.

    if (_gazeAware.HasGazeFocus)
    {
    this.gameObject.SetActive(false);
    Debug.Log(“=)”);
    }
    else
    {
    Debug.Log(“=/”);
    }

    There is something else that I have to do to make it work?

    #11271
    Alex [Tobii]
    Participant

    Hi @nildes !
    Do the sdk samples work well?
    Please double check collision layers and max distance in the eye tracking settings.

    #11272
    Jordão
    Participant

    Yes, the sample of the sdk work good. Which value should I put on maximum distance? And about collision layers, it’s the gaze focus layers? If so, which options should be marked? I just wanna track one object on the scene.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.