cancel
Showing results for 
Search instead for 
Did you mean: 

Gaze Targets error in Unity

Hexapuss_Steve
Heroic Explorer
Is anyone else getting an error with Avatar Gaze Targets?
Unity 2019.2   Oculus Integration 1.39

Unity Error:
NullReferenceException: Object reference not set to an instance of an object
System.Runtime.InteropServices.Marshal.WriteInt32 (System.IntPtr ptr, System.Int32 val) (at <a8ed250850854b439cedc18931a314fe>:0)
Oculus.Avatar.CAPI.ovrAvatar_UpdateGazeTargets (ovrAvatarGazeTargets targets) (at Assets/Oculus/Avatar/Scripts/OvrAvatarSDKCAPI.cs:1430)
GazeTarget.UpdateGazeTarget () (at Assets/Oculus/Avatar/Scripts/GazeTarget.cs:43)
GazeTarget.Start () (at Assets/Oculus/Avatar/Scripts/GazeTarget.cs:19)

Know a workaround?

Thanks,
Steve Hinan - METAL MULTIBALL
1 ACCEPTED SOLUTION

Accepted Solutions

GEMISIS
Adventurer
There are bugs in both 1.39.0 and 1.40.0. I've filed an issue at https://developer.oculus.com/bugs/bug/381395326131346/

View solution in original post

2 REPLIES 2

Heaney-555
Heroic Explorer
I am getting the same issue. Seems to be a bug in Avatars 1.39 or some new version of Unity.

GEMISIS
Adventurer
There are bugs in both 1.39.0 and 1.40.0. I've filed an issue at https://developer.oculus.com/bugs/bug/381395326131346/