Forum Discussion
junior_g
9 years agoHonored Guest
Unity Exception: trackedComponents didn't have base
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:
​Any pointers would be appreciated. I am not very experienced with game development and currently learning.
Using Unity v2017.1.1f1, Oculus Utilities v1.15.0, OVRPlugin v1.14.1, SDK v1.20.0.
Thank you!
Phil
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);
}​
Using Unity v2017.1.1f1, Oculus Utilities v1.15.0, OVRPlugin v1.14.1, SDK v1.20.0.
Thank you!
Phil
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 months ago
- 13 years ago
- 12 years ago