Quote:
I have written the program but is giving the following error:
No, it is not an error, it is a
warning.
Quote:
warning CS0618: UnityEngine.GUITexture' is obsolete: This component is part of the legacy UI system and will be removed in a future release.
The message warns you about a future problem. Even if I don't know or use this UnityEngine, I know where to find solution:
- Read documentation and you will get reason of warning and replacement.
A simple Google search with "UnityEngine.GUITexture obsolete" will lead you to useful informations and to solution.