- 03/02/2014 at 15:50 #339Thomas SjöholmParticipant
What I want to achieve is to get current eye position to a script on a camera. My problem is that i get the following error:
Tobii.EyeX.Client.InteractionSystem..ctor (ILoggingModel loggingModel, IThreadingModel threadingModel)
Tobii.EyeX.Client.InteractionSystem.Initialize (ILoggingModel loggingModel, IThreadingModel threadingModel)
Foo.Start () (at Assets/Scripts/Foo.cs:35)
I have tried to import that the Client.dll both into Unity and into Visual Studios 2010 (my chosen text editor for unity scripts), but either I cannot chose it or I get the following error:
A reference to ‘”path” + \Assets\Plugins\Tobii.EyeX.Client.dll’ could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.
I have used a lot of code from the MinimalGazeDataStream project, only changed a few lines to make it to Unity and Eye Position instead of Gaze Point.
Note that the Tobii.EyeX.Client.Net20.dll seems to work fine, but the Client.dll seems to be required and cannot be loaded…03/02/2014 at 15:58 #340Robert [Tobii]Participant
When building your Unity game, you need to manually copy Tobii.EyeX.Client.dll from the Unity project directory to the directory where your game was just built, the same directory as the .exe file.
We would like this file to be copied automatically, but have not found a way to do this. I hope this solves your problem.03/02/2014 at 18:52 #341Thomas SjöholmParticipant
I did not understand that I had to have the …Client.dll in the projects root in order to try in the Unity Editor. Now it works! 🙂
I will probably remember to copy it to the Build folder when I build as well after this day (first day of Eye Tracking in Unity).
Now the creation of awesome stuff can begin!
- You must be logged in to reply to this topic.