Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Game Development How to Make a Video Game Build and Share a Unity Game Build for Windows & OS X

tried to deploy to iOS but now getting error in my scripts

I built the project and wanted to deploy it to iOS after i tried to build and run the project to iOS i am now getting error saying that the script in unity scripts is outdated

here is what i am seeing any help will do thanks. this is the message i am receiving. " the namespace Global already contains a definition for game quality"

using UnityEngine; using System.Collections;

public class GameQuality : MonoBehaviour { "the namespace Global already contains a definition for game quality"

[SerializeField]
private GameObject water;
[SerializeField]
private GameObject dust;
[SerializeField]
private Terrain terrain;

void Awake () {

    // If the quality level is less than 1...
    if (QualitySettings.GetQualityLevel () < 1) {

        // ...then disable the water...
        water.SetActive(false);

        // ...and disable the dust...
        dust.SetActive(false);

        // ...increase the pixel error on the heightmap.
        terrain.heightmapPixelError = 12;

    }
}

}