title: How do I create a white rectangle in Unity 2D?
body: <p>Hello Stack Overflow community.</p>
  
  <p>I've just started to use Unity to port my video game to multiple platforms.  I had a question about creating objects programmatically in Unity.  This is what it my game looks like currently:</p>
  
  <p><img src="https://i.stack.imgur.com/UJ1Wv.png" alt="enter image description here"></p>
  
  <p>When the user taps the camera button, the camera picture scales bigger onTap and offTap.  I want the <strong>entire screen to flash white for only a brief second</strong> but I have no idea how to do this.  Here is the C# code I have already for this question:</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class question3 : MonoBehaviour {
      int cameraTaps = 0;
      // Use this for initialization
      void Start () {
  
      }
  
      IEnumerator CameraCoroutine() {
          Debug.Log("Before Waiting 3 seconds");
          yield return new WaitForSeconds(3);
          Debug.Log("After Waiting 3 Seconds");
          Application.LoadLevel("question4");
      }
      // Update is called once per frame
      void Update () {
          if (Input.GetMouseButtonDown(0)) 
          {
              RaycastHit hit;
              Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
  
              if (Physics.Raycast(ray, out hit))
              {
                  if (hit.collider.gameObject.name == "camera")
                  {
                      var camera = (hit.collider.gameObject);
                      camera.transform.localScale += new Vector3(.1f, .1f, 0);
                  }
              }
          }
          if (Input.GetMouseButtonUp(0)) 
          {
              RaycastHit hit;
              Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
  
              if (Physics.Raycast(ray, out hit))
              {
                  if (hit.collider.gameObject.name == "camera")
                  {
                      var camera = (hit.collider.gameObject);
                      camera.transform.localScale -= new Vector3(.1f, .1f, 0);
                      cameraTaps = cameraTaps + 1;
                      print (cameraTaps);
                      if (cameraTaps == 5)
                      {
                          StartCoroutine(CameraCoroutine());
  
                      }
                      if (cameraTaps &gt; 5)
                      {
                          Application.LoadLevel("fail");
                      }
  
                  }
                  if (hit.collider.gameObject.name == "turtle")
                  {
  
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>Any help would be much appreciated. I really have no idea how to either insert PNG's or create a rectangle that will overlay for a brief second.  </p>