Skip to main content
Tweeted twitter.com/StackGameDev/status/980641434742284290
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 32 characters in body
Source Link

When change the framebuffer resolution by calling

Screen.setResolution(1920,1080)

Screen.currentResolution, Screen.width, Screen.height reports back the new resolution 1920x1080.

Screen.resolutions gave me empty array (tested on real android device).

I am unable to get back the original resolution which was a native resolution of the device. Do I have to remember the native resolution or is there a way to get that through unity API ?

When change the framebuffer resolution by calling

Screen.setResolution(1920,1080)

Screen.currentResolution, Screen.width, Screen.height reports back the new resolution 1920x1080.

Screen.resolutions gave me empty array.

I am unable to get back the original resolution which was a native resolution of the device. Do I have to remember the native resolution or is there a way to get that through unity API ?

When change the framebuffer resolution by calling

Screen.setResolution(1920,1080)

Screen.currentResolution, Screen.width, Screen.height reports back the new resolution 1920x1080.

Screen.resolutions gave me empty array (tested on real android device).

I am unable to get back the original resolution which was a native resolution of the device. Do I have to remember the native resolution or is there a way to get that through unity API ?

added 29 characters in body
Source Link

When change the framebuffer resolution by calling

Screen.setResolution(1920,1080)

Screen.currentResolution, Screen.width, Screen.height reports back the new resolution 1920x1080.

Screen.resolutions gave me empty array.

I am unable to get back the original resolution which was a native resolution of the device. Do I have to remember the native resolution or is there a way to get that through unity API ?

When change the framebuffer resolution by calling

Screen.setResolution(1920,1080)

Screen.currentResolution reports back the new resolution 1920x1080.

Screen.resolutions gave me empty array.

I am unable to get back the original resolution which was a native resolution of the device. Do I have to remember the native resolution or is there a way to get that through unity API ?

When change the framebuffer resolution by calling

Screen.setResolution(1920,1080)

Screen.currentResolution, Screen.width, Screen.height reports back the new resolution 1920x1080.

Screen.resolutions gave me empty array.

I am unable to get back the original resolution which was a native resolution of the device. Do I have to remember the native resolution or is there a way to get that through unity API ?

Source Link

Is there a way to get native resolution of device window/display on android?

When change the framebuffer resolution by calling

Screen.setResolution(1920,1080)

Screen.currentResolution reports back the new resolution 1920x1080.

Screen.resolutions gave me empty array.

I am unable to get back the original resolution which was a native resolution of the device. Do I have to remember the native resolution or is there a way to get that through unity API ?