problem detecting if Oculus is on in 0.6.0
Unity version - 5.0.1f1
SDK Version - 0.6.0
Before I wasn't having a problem when my program ran without the oculus being on but now I get this error.
NullReferenceException: Object reference not set to an instance of an object
OVRTracker.set_isEnabled (Boolean value) (at Assets/Standard Assets/ScriptsOVR/OVRTracker.cs:109)
PlayerScript.loadinfile (System.Object inilocation) (at Assets/Scripts/PlayerScript.js:1728)
PlayerScript.Start () (at Assets/Scripts/PlayerScript.js:2196)
I can easily do something different if the oculus isn't on but would like to know the best method for checking whether or not the oculus is on. I've tried "if (OVRDevice.SensorCount > 0)" but i seem to get a similar message to the one above.
Anyone else had this problem?
Cheers
Phil
SDK Version - 0.6.0
Before I wasn't having a problem when my program ran without the oculus being on but now I get this error.
NullReferenceException: Object reference not set to an instance of an object
OVRTracker.set_isEnabled (Boolean value) (at Assets/Standard Assets/ScriptsOVR/OVRTracker.cs:109)
PlayerScript.loadinfile (System.Object inilocation) (at Assets/Scripts/PlayerScript.js:1728)
PlayerScript.Start () (at Assets/Scripts/PlayerScript.js:2196)
I can easily do something different if the oculus isn't on but would like to know the best method for checking whether or not the oculus is on. I've tried "if (OVRDevice.SensorCount > 0)" but i seem to get a similar message to the one above.
Anyone else had this problem?
Cheers
Phil
