Open ashirbad97 opened 1 year ago
Most likely this condition appears due to the fact that the StartEyeTrackingCalibration(), first asks for the adjustment of the headset and until then the coroutine yield for WaitForEyeTrackingCalibrationEnd will return false as the calibration has not itself started so it goes into the double check condition and thankfully gets caught and recursively called again.
This introduces an additional error when the Head Adjustment GUI is not visible at all.
Prevents from escaping the hold of coroutine by holding the coroutine till the ET has started
In EnforceCalibrationCoroutine the co-routine should be able to hold the function (i.e yield) only when the eye calibration screen has been completed. As an additional check (as we don't know what the status of calibration result will be) we have conditions to check if the eye-tracking has been successfully calibrated. If not successfully calibrated then we run the Coroutine again recursively.