How to Track Battery

Godot Version

Godot 4.4.1

Question

Does anyone know how to track battery in godot? I want to make a application launcher that can save apps and I just wanted to add a battery bar.

Getting battery percent was partially added before 3.0 and removed in 4.0; If you’re willing to downgrade there seems to be a OS.get_power_percent_left in 3.6 that works on desktop platforms Linux, Mac, and Windows.

Or if you are willing to compile the engine yourself you could try to revert this PR

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.