So I’m creating a menu in Unity and I had a canvas set up to show some text necessary to navigate the menu. My problem arises with the following script that I put on my camera:
using UnityEngine;
using System.Collections;
public class MenuDisplayScript : MonoBehaviour {
public Texture backgroundTexture;
void OnGUI(){
//Display our background Texture
GUI.DrawTexture (new Rect (0, 0, Screen.width, Screen.height), backgroundTexture);
}
}
The image I have in this script seems to go over the text in the menu, so what am I doing wrong?