Jump to content
 
Sign in to follow this  
VRandArchI

Another minor bug in Unity SDK

Recommended Posts

I've found another typo in Unity version of SRanipal SDK, version 1.0.1.0.
File: ViveSR\Scripts\SRanipal_Eye.cs, line 162
Function:

SRanipal_Eye.GetEyeOpenness(EyeIndex eye, out float openness)

Description: Function always returns true, despite code comments saying that it should return data validity.
Solution: Change line

return true;

to

return valid

PS: While UE version of SDK doesn't have this error, it also doesn't check whether framework is active, while Unity current version does. This is also probably not intended behaviour.

Share this post


Link to post
Share on other sites

and maybe

 

bool valid = true;

at the beginning of function ?

otherwise it didn't recognize valid

 

 

 

Share this post


Link to post
Share on other sites


 wrote:

and maybe

 
bool valid = true;

at the beginning of function ?

otherwise it didn't recognize
valid

 

 

 

Yeah, good point.

Share this post


Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...