Search Unity

Change graphical settings with GUI

Discussion in 'Immediate Mode GUI (IMGUI)' started by Ardan, Aug 5, 2010.

  1. Ardan

    Ardan

    Joined:
    Oct 5, 2009
    Posts:
    68
    I have built a small and simple menu to represent my main menu in my game. What i need help with is, how do i make it so that the buttons in the grid changes the graphical settings for the game?

    See the image below:
     
  2. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    You can set the quality level using the QualitySettings.currentLevel value:-
    Code (csharp):
    1. QualitySettings.currentLevel = QualityLevel.Good;
     
  3. Ardan

    Ardan

    Joined:
    Oct 5, 2009
    Posts:
    68
    Oh, was it that simple, i must have missed it when searching through the documentation. Thanks!
     
  4. kulmurat2001

    kulmurat2001

    Joined:
    Sep 23, 2010
    Posts:
    58
    someone can help me about using this code?
     
  5. GisleAune

    GisleAune

    Joined:
    May 16, 2011
    Posts:
    88