Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Get user selected Resolution at runtime on standalone windowed build

Discussion in 'Scripting' started by bhupi, Aug 28, 2015.

  1. bhupi

    bhupi

    Joined:
    May 6, 2015
    Posts:
    11
    Hi

    In attached image there various resolutions to select. how can i get which resolution user has selected before pressing "Play" Button at runtime.

    "http://docs.unity3d.com/ScriptReference/Screen.html" This class does not seem to provide this option. Is there any other way to do it. I have searched about it but not got any solution.



    Regards
    Bhupinder
     

    Attached Files:

  2. AShim-3D

    AShim-3D

    Joined:
    Jul 13, 2012
    Posts:
    33
    You can get settings from PlayerPrefs. Keys are:
    • "Screenmanager Resolution Height"
    • "Screenmanager Resolution Width"
    • "Screenmanager Is Fullscreen mode"
    • "UnityGraphicsQuality"