playMaker

Author Topic: Setting Resolutions  (Read 1023 times)

Starside

  • Playmaker Newbie
  • *
  • Posts: 8
Setting Resolutions
« on: July 31, 2020, 04:19:46 PM »
Hello everyone,

Was wondering how to set screen resolutions based on the players monitor etc. I know there are Get/Set screen resolutions for example from here: https://hutonggames.com/playmakerforum/index.php?topic=2968.0

But is there a way to detect the players possible resolutions so they could select that option? Or what do you recommend? Just put a list of resolutions they could choose from?

nuFF3

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 74
  • Are we even real?
    • One Month Studio
Re: Setting Resolutions
« Reply #1 on: July 31, 2020, 05:09:05 PM »
Getting a list of supported resolution action is something playmaker doesn't come with, but you can get it through 'Screen.resolutions' if you did it in code.
It will store everything into a long array variable.
Here's the Unity reference for it:
https://docs.unity3d.com/ScriptReference/Screen-resolutions.html

I just ignored this by simply allowing predetermined generic resolutions, like:
1280x720, 1920x1080, 2560x1440, etc etc.
And then use the SetResolution from the forum post you linked to set the resolution.

Starside

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Setting Resolutions
« Reply #2 on: July 31, 2020, 06:56:24 PM »
Thanks! Yeah was thinking of doing the second option you listed, but wasn't sure which resolutions to pick for the general player