Anonymous
6 years agoGet debug.oculus Property in code
Developing in Unity, so C#. On windows we have some environment variables that we can use to override/activate Dev mode for some things for developing. I'm trying to set up and get something similar on Quest, I can use 'adb shell setprop debug.oculus.DevPropHere Dev' to set a new value, but I can't seem to set a custom property anywhere other than debug.oculus, and I can't figure out what package this debug.oculus class exists in. I am trying to read this property in code using
AndroidJavaClass androidClass = new AndroidJavaClass("debug.oculus");
string DevPropHereValue = androidClass.Get<string>("DevPropHere");
I've tried many different versions of debug.oculus, and some of the com.oculus packages that exist on the oculus, and changing DevPropHere to debug.oculus.DevPropHere but I can't get the class so finding this property won't matter now anyways.. I just want to be able to set the value with adb, and read it from code to turn on some values if the property exists.
Thanks for any Help.
I've tried many different versions of debug.oculus, and some of the com.oculus packages that exist on the oculus, and changing DevPropHere to debug.oculus.DevPropHere but I can't get the class so finding this property won't matter now anyways.. I just want to be able to set the value with adb, and read it from code to turn on some values if the property exists.
Thanks for any Help.