Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
hallsofvallhall's avatar
hallsofvallhall
Honored Guest
11 years ago

Unity Build Issues with android

I have Unity 4.6.3 and added the OVR package, created a scene, dropped in the OVR character controller and when I build I get
NullReferenceException: Object reference not set to an instance of an object
OVRManager.get_profile () (at Assets/OVR/Scripts/OVRManager.cs:114)
OVRPlayerController.Update () (at Assets/OVR/Scripts/Util/OVRPlayerController.cs:152)

NullReferenceException: Object reference not set to an instance of an object
OVRCameraRig.ConfigureCamera (OVREye eye) (at Assets/OVR/Scripts/OVRCameraRig.cs:279)
OVRCameraRig.UpdateCameras () (at Assets/OVR/Scripts/OVRCameraRig.cs:147)
OVRCameraRig.LateUpdate () (at Assets/OVR/Scripts/OVRCameraRig.cs:113)

NullReferenceException: Object reference not set to an instance of an object
OVRPlayerController.OnDisable () (at Assets/OVR/Scripts/Util/OVRPlayerController.cs:130)

Assets/OVR/Scripts/OVRManager.cs(401,24): error CS0246: The type or namespace name `OVRVolumeControl' could not be found. Are you missing a using directive or an assembly reference?

1 Reply

Replies have been turned off for this discussion
  • use project setting from "mobile_sdk_0.5.0" and use unity integration script from "ovr_unity_0.4.4_lib" this works fine with Unity 4.6.3 version.
    I hope this will work with you.