Is is possible to find the users brightness on ANDROID?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By horsecar123

For an android game is there way to find the phnoes screen brightness value ? In low brightness some of my objects arent visible enough so and i want them more visible depending on screen brightness value ?

:bust_in_silhouette: Reply From: Calinou

Godot currently doesn’t have a way to retrieve the device’s brightness setting. However, remember that this brightness setting varies across devices. Different devices will result in a different brightness output with the same input image, so you cannot rely on the device’s brightness value as a “is it bright enough?” check.

I recommend instructing players to raise their device’s brightness if needed on the game’s main or help menus instead. You could also implement and in-game brightness setting using a translucent ColorRect node that covers the whole screen (possibly with a custom CanvasItemMaterial to have a different blend mode).