Change graphical settings with GUI

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:

You can set the quality level using the QualitySettings.currentLevel value:-

QualitySettings.currentLevel = QualityLevel.Good;

Oh, was it that simple, i must have missed it when searching through the documentation. Thanks!

someone can help me about using this code?

I suggest you take a look at GUI scripting first, it’s reallly simple. The tutorial below might help you.
GUI basics (javascript): http://www.youtube.com/watch?v=JEMdbT7HWqw