#Resolution is set too low and can't revert to native in a new build.

1 messages · Page 1 of 1 (latest)

lone lantern
#

I was trying to do a fast way of setting the resolution lower than native, but it didn't end well. So now every build I create is just one pixel.

#

What I am now looking for is a way to set the resolution to system native whenever the game starts to prevent something like this happening again.

pure garnet
#

You can use Display.main to get the main display of the system. From that, you can then get either the system height/width or rendering height/width.

#

Then just set your game's resolution accordingly (I think through the Screen class)

lone lantern
#

WIll DIsplay.main work for android or any platforms too?

#

Because I am planing to port this game to mobile

pure garnet
#

read the documentation

lone lantern
#

You're a life saver man, thanks!