title: Make alert/popup box in unity game for android
body: <p>I am trying to make a game, for which I completed a whole framework and other stuff, but GUI programming is painful. I want to create a box as shown in the picture below. I tried to do it so many times, but every time it's just not working at all. </p>
  
  <p>I have done many things for it with <code>GUI.BOX</code>, <code>GUI.DrawTexture</code>, <code>GUI.Window</code> and tried to make android plugin code, too.</p>
  
  <p>I want to make my box like this image: </p>
  
  <p><img src="https://i.stack.imgur.com/V3ujt.png" alt="example image"></p>
  
  <pre><code>void OnGUI()
  {
      GUI.BeginGroup(new Rect(10, Screen.height / 2 - 50, Screen.width - 20, hintTexture.height));
      GUI.DrawTexture(new Rect(10,Screen.height /2 - 50,Screen.width -20 , hintTexture.height),hintTexture);
      GUI.Label(new Rect(20, Screen.height / 2 - 50, Screen.width - 20, 50), "Are you sure want to Quit?", noGUIStyle);
      if (GUI.Button(new Rect(10, Screen.height / 2, Screen.width - 20, yesBtn.height), yesBtn,noGUIStyle))
      {
          Application.Quit();
      }
  
      if (GUI.Button(new Rect(10, Screen.height / 2, Screen.width - 20, noBtn.height), noBtn,noGUIStyle))
      {
          Time.timeScale = 1;
          Destroy(this.gameObject);
      }
      GUI.EndGroup();
  }
  </code></pre>
  
  <p>For Unity Android :</p>