Version: 2020.2
public static float dpi ;



This is the actual DPI of the screen attached or physical device running the application. May return 0 if unable to determine the current DPI.
Note that on Android this returns densityDpi which is a logical bucket containing a range of dpi values. If you need a more precise dpi value, see this forum thread.