Hello all,
I have been working on a VR project for the Rift, utilizing VRTK. All of a sudden, I started having issues where the camera viewpoint of the Rift was underneath its usual location about 5 units. This started, when, during a heated coding troubleshooting session, I deleted the term “MonoBehavior” from the line “public class VideoControl : MonoBehaviour {” in a script I was working on at the time. I have been able to restore its normal position by doing something in the editor (don’t remember exactly how at this point), but I now receive countless errors as such:
Exception: trackedComponents didn’t have base
OvrAvatar.UpdateAvatarComponent (ovrAvatarComponent component) (at Assets/OvrAvatar/Scripts/OvrAvatar.cs:209)
OvrAvatar.UpdateSDKAvatarUnityState () (at Assets/OvrAvatar/Scripts/OvrAvatar.cs:345)
OvrAvatar.Update () (at Assets/OvrAvatar/Scripts/OvrAvatar.cs:498)
I am unable to find any mention of this error anywhere.
It refers to the following function in OvrAvatar.cs:
private void UpdateAvatarComponent(ovrAvatarComponent component)
{
OvrAvatarComponent ovrComponent;
if (!trackedComponents.TryGetValue(component.name, out ovrComponent))
{
throw new Exception(string.Format(“trackedComponents didn’t have {0}”, component.name));
}
ovrComponent.UpdateAvatar(component, this);
}
Any pointers would be appreciated. I am not very experienced with game development and currently learning.
Unity v2017.1.1f1, Oculus Utilities v1.15.0, OVRPlugin v1.14.1, SDK v1.20.0.
Thank you!
Phil