title: Using gui textfield for custom resolution
body: <p>I need some help please, I try to add a custom resolution changer in c# with unity gui.</p>
  
  <pre><code>this.WeightRez = GUI.TextField(new Rect(300f, 250f, 90f, 25f), this.WeightRez, 6);
  
  if (GUI.Button(new Rect(350f, 0f, 0f, 0f), ""))
  {
      if (int.TryParse(this.WeightRez, out this.WeightRezFloat))
      {
          this.WeightRezFloat = int.Parse(this.WeightRez);
      } else {
          this.HeightRez = "ERROR";
      }
  }
  
  this.HeightRez = GUI.TextField(new Rect(260f, 0f, 90f, 25f), this.HeightRez, 6);
  
  if (GUI.Button(new Rect(300f, 230f, 90f, 0f), ""))
  {
      if (int.TryParse(this.HeightRez, out this.HeightRezFloat))
      {
          this.HeightRezFloat = int.Parse(this.HeightRez);
      } else {
          this.HeightRez = "ERROR";
      }
  }
  
  if (GUI.Button(new Rect(450f, 0f, 120f, 25f), "Set"))
  {
      Screen.SetResolution(this.WeightRezFloat, this.HeightRezFloat, true);
  }
  </code></pre>
  
  <p>It wont work
  Thanks if you can help me</p>