Tagged: Unity SDK Scene Change
- 08/04/2018 at 04:53 #8094Chris HoopesParticipant
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.08/04/2018 at 19:02 #8101Alex [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.09/04/2018 at 20:50 #8109Chris HoopesParticipant
Okay, moving this to Discord.
- You must be logged in to reply to this topic.