Home › Forums › Software Development › Application.LoadLevel doesn't load Tobii in the EXE › Reply To: Application.LoadLevel doesn't load Tobii in the EXE
17/02/2016 at 07:50 #4457
Participant
Unity 5.3.2p3 / TobiiEyeXSdk-Unity-1.6.477
So, I made a really nasty workaround to this issue. I am not sure what is causing it, whether the OnApplicationFocus callback is being called in between scenes or there is an issue elsewhere. The following code allows for scene changes to not affect tracking.
private void OnLevelWasLoaded(int level)
{
EyeXHost.GetInstance().OnApplicationFocus(true);
}