Home Forums Unity SDK Issue with invalid GazePoint data after scene change

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8094
    Chris Hoopes
    Participant

    In our game we have multiple scenes one after another that rely on gaze data. However sometimes after changing a scene in Unity we’ll start getting invalid data when calling TobiiAPI.GetGazePoint(). This issue persists until the game is restarted completely. I see that IsValid is checking to see if Viewport.x and Viewport.y are both numbers but I’m not sure why they wouldn’t be.

    I know that TobiiHost is marked as DontDestroyOnLoad and we make sure that it’s not touched when changing scenes. We’ve also tried re-initializing as per the API by calling TobiiAPI.SubscribeGazePointData() and TobiiAPI.SubscribeHeadPoseData() after the scene loads as per the documentation but that doesn’t fix things either.

    Is there a “correct” way of changing scenes so that the Tobii API stays fully functional between them? We’re using the latest version of the SDK on Unity 2017.1.0f3. Thanks for any help you can give.

    #8101
    Alex [Tobii]
    Participant

    Hi @yodzilla !
    Tobii Unity SDK indeed supports switching scenes and the only important thing as you mentioned is to ensure TobiiHost is not getting destroyed (well, it anyway will get auto-created if deleted).

    Please text me on Discord – https://discord.gg/7fBBB5s – alex8b#9170
    and we will take a look at what goes wrong in your particular case.

    #8109
    Chris Hoopes
    Participant

    Okay, moving this to Discord.

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