Hi all!
I have this “Press Triangle to Enter” UI pop-up text popping up when standing infront of a door.
The script works fine but it has this Warning Triangle in the Console window and inside the script is says:
GUI Texture is obsolete;
How can I fix this Error message without re-programming the entire function?
““This bit here is where I can find the GUITexture…This component is part of the legacy UI system and will be removed in future release””
[SerializeField]
private Texture2D popupImage;
private GUITexture triangleTexture;
public GUITexture Triangle { get; private set; }
// Use this for initialization
void Start()
{
theTextBox = FindObjectOfType<TextExamineManager>();
triangleTexture = GameObject.Find("TriangleExamine").GetComponent<GUITexture>();
}
Thanks in advance!