Items with no label
3335 Discussions

Gaze Tracking - NULL Exception

DFrei2
Beginner
1,095 Views

I am trying to do a Gaze Tracking (C# and Unity) and, has mention in the documentation, the first step is to make a calibration.

The above code is what I tried to do for the calibration:

void Start ()

 

{

 

 

sm = PXCMSenseManager.CreateInstance ();

 

 

if (sm == null) {

 

 

Debug.LogError ("SenseManager Initialization Failed");

 

 

return;

 

 

}

 

 

sm.EnableFace ();

 

 

 

 

if (sts != pxcmStatus.PXCM_STATUS_NO_ERROR)

 

Debug.LogError ("PXCSenseManager.EnableHand: " + sts);

 

 

faceAnalyzer = sm.QueryFace();

 

 

if (faceAnalyzer == null) {

 

 

Debug.</s...
0 Kudos
2 Replies
MartyG
Honored Contributor III
197 Views

Looking at other samples that have used these instructions, the first thing I would try is changing the Start()'s line 21 from:

faceAnalyzer = sm.QueryFace();

to

faceAnalyzer = sm>QueryFace();

QueryFace() instructions tend to involve 'sum' signs such as +, - and >, so this made me wonder if with your quoted script, the writer meant to type a > symbol and didn't do the shift-key, getting a full stop instead

0 Kudos
idata
Employee
197 Views

Hello Dntfreitas,

 

 

Do you have any updates about this? Did MartyG's suggestion helped? Or, are you still having issues?

 

Please let us know, we'll try to help you in any way we can.

 

 

Pedro M.
0 Kudos
Reply