rendering quality

is it possible to control rendering quality during run time?
for example to choose from fast,simple,beautiful…etc like we have a menu in the standalone version?

if that is not possible, how to control antialiasing in run time? or any other propery that will affect the
rendering quality.

thanks!

http://unity3d.com/support/documentation/ScriptReference/QualityLevel.html

I went on that exact page 5 minutes before I read your post, bigkahuna, but I want to make a quality slider.
Can you tell me how to make one? Here was my attempt (this script includes all my other GUI code.)

var customSkin : GUISkin;
var customSkin2 : GUISkin;
var gunname = "Gun";
var hSliderValue : float = 0.0;
function OnGUI() {

GUI.skin = customSkin;

GUI.Box(Rect(0,0,255,85),gunname);

GUI.skin = customSkin2;

hSliderValue = GUI.HorizontalSlider (Rect (25, 25, 100, 30), hSliderValue, 0.0, 0.06);

if(hSliderValue : float = 0.01){
QualitySettings.currentLevel = QualityLevel.Fastest;
}
if(hSliderValue : float = 0.02){
QualitySettings.currentLevel = QualityLevel.Fast;
}
if(hSliderValue : float = 0.03){
QualitySettings.currentLevel = QualityLevel.Simple;
}
if(hSliderValue : float = 0.04){
QualitySettings.currentLevel = QualityLevel.Good;
}
if(hSliderValue : float = 0.05){
QualitySettings.currentLevel = QualityLevel.Beautiful;
}
if(hSliderValue : float = 0.06){
QualitySettings.currentLevel = QualityLevel.Fantastic;
}
}

I would change the value of hSliderValue to an “int” instead of a “float” and then make the options for it “0”, “1”, “2”, etc. Since you’ve set it to a “float” it’ll be almost impossible to get the slider exactly in the right place for your if statements to work.

Also, your script sets the QualitySetting.currentLevel every OnGUI call. instead check if the value has changed

if(GUI.changed)
{
//set new qualitysettting.
]