Jump to content

A minor bug in Unity package of SDK

Recommended Posts

I've e-mailed it to 7invensun, guess I'll also share it here
There is a small error in Unity version of SRanipal SDK, version, probably caused by copy-pasting error.
File: ViveSR\Scripts\SRanipal_Eye.cs, line 366
SRanipal_Eye.Focus(GazeIndex index, out Ray ray, out FocusInfo focusInfo, float maxDistance)
Description: maxDistance parameter is ignored in later call
Solution: Change line
return Focus(index, out ray, out focusInfo, 0, float.MaxValue);
return Focus(index, out ray, out focusInfo, 0, maxDistance);
Link to comment
Share on other sites

  • 4 weeks later...


This topic is now archived and is closed to further replies.

  • Create New...