I am trying to set screen off and sleep delay to never while doing some tasks like downloading because it can provoke some potential errors.
I have tried using the code below but it does not work, the app stops once I try to set it up...
I found these methods in the documentation, I don't know I'm calling them wrong, or if there is an alternative way of doing this...
Debug.Log("Setting PropertySetScreenOffDelay");
Unity.XR.PXR.PXR_Plugin.System.UPxr_PropertySetScreenOffDelay(Unity.XR.PXR.ScreenOffDelayTimeEnum.NEVER, OnScreenOff); // 1 min
Debug.Log("Setting PropertySetSleepDelay");
Unity.XR.PXR.PXR_Plugin.System.UPxr_PropertySetSleepDelay(Unity.XR.PXR.SleepDelayTimeEnum.NEVER);
Debug.Log("Setting Finished");