Jump to content

Meaning of Framwork.Status STOP


Recommended Posts

Hello!

I have eye tracking working just fine in Unity in play mode. I can track at 60hz, or using the callback at 120 hz. 
When I make a build the calibration runs before my scene loads, and then in my scene eye tracking does not work.
In my script where I run get the eye data I check the status using 
SRanipal_Eye_Framework.Status

and I make sure that it is working.
For some reason it is always return STOP when I run from the build, even though the calibration ran properly, and it works in unity play mode. 

Any ideas on why it no longer works? I am not sure if this is because something isn't making it into the build that should, or if it is because things are not initialized in the same order so when I check the status perhaps the eye tracker hasn't started yet. I do the check in my scipt's Start method, so everything should be Awake at that point.

Any help is appreciated!

Link to comment
Share on other sites

Hello,
I resolved the issue. It seems that the order of things running their start methods changes when in the Unity editor and the build, and so what worked in the editor didn't in the build because I was checking the status before the eye tracking started. By adding a delay I was able to make sure the eye tracking script waited until the system was entirely ready.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...