Home › Forums › Game Integration › Unity SDK with tobii Eye X › Reply To: Unity SDK with tobii Eye X
09/08/2018 at 06:17 #8707
Rasa Bhattarai
Participant
Hello Tobii team,
I did everything as told but nothing seems to be working. Would you please help me out to solve this problem ?
public GazeAware _gazeAwareComp;
void Start()
{
TobiiAPI.SetCurrentUserViewPointCamera(Camera.current);
_gazeAwareComp = GetComponent<GazeAware>();
}
void Update()
{
if (_gazeAwareComp.HasGazeFocus)
{
// Some code
}
}
My hierarchy window is like this:
Main Camera
Directional light
Ground
Player
The Main Camera is also enabled.
When I play the button, the ball starts moving in a circle and the camera works fine. I did everything as suggested by you. I added GazeAware component in my Player game object and the code above. But it still shows the same error.
Sorry for this same question. But i am having real trouble using gazeaware.