Quality Settings To Turn On Object

Hello, I am trying to turn on an object based off of the quality setting, I have this script:

var object1 : GameObject;

function Awake ()
{
	QualitySettings.GetQualityLevel();
}

function Update () 
{
	if (QualityLevel.Fastest)
	{
		object1.gameObject.SetActive(true);
	}
}

And I get no errors with it, even during runtime, however it is not working at all.
I dont understand where I am going wrong.

That is strange, I have played with the code for a while with use of the unity reference and I made this script. (I made some mistake with saying LevelName, LevelName is not a member of QualitySettings so it didnt work. It should have been currentLevel. and you forgot to add another “=” ____1x"=" means Is. while 2x"=" mean is Equal to)

using UnityEngine;
using System.Collections;

public class Test : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		if (QualitySettings.currentLevel == QualityLevel.Fastest) {
			Application.LoadLevel ("1");
		} else 
			Application.LoadLevel ("2");
	}
}

When I build and run this test project and put the quality to fastest. it would go to Apllication.LoadLevel(“1”); and if some other quality was chosen, it would go to Application.LoadLevel(“2”);.

The same concept can also be applied to your script.

if (QualitySettings.currentLevel == QualityLevel.Fastest) {
  object1.gameObject.SetActive(true);
}