Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Anonymous's avatar
Anonymous
4 years ago
Solved

BatteryLevel not working!!

i tried to use Unity.XR.Oculus.Stats.AdaptivePerformance.BatteryLevel on Quest 2 but its not working anymore ...

any suggestions??

  • Anonymous's avatar
    Anonymous
    4 years ago

    thanks for your reply ...

     

    i'm using 

    SystemInfo.batteryLevel

    for now and everything looks good :]

3 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous

    It's not going to be that useful asking about bugs in the Unity XR implementation here.

     

    If you're targeting Oculus Quest why not use the Oculus Integration and the classes/methods provided by Oculus?

     

    /// <summary>
    /// Gets the current battery level.
    /// </summary>
    /// <returns><c>battery level in the range [0.0,1.0]</c>
    /// <param name="batteryLevel">Battery level.</param>

    OVRManager.batteryLevel

  • Anonymous's avatar
    Anonymous

    thanks for your reply ...

     

    i'm using 

    SystemInfo.batteryLevel

    for now and everything looks good :]

  • Anonymous's avatar
    Anonymous

    Then this thread title probably didn't need the double exclamation points!! That kinda communicates an urgent blocking issue, not something that can be solved with googling.