error CS0619: 'GUITexture' is obsolete: 'GUITexture has been removed. Use UI.Image instead.'

hELLO i am trying to make a sonic game but i keep getting this error

error CS0619: ‘GUITexture’ is obsolete: ‘GUITexture has been removed. Use UI.Image instead.’
I ahve no idea how to fix it

1 Like

GUIT Text is obsolete error message - Talk - GameDev.tv

Edit: Sorry, I obviously wasn’t concentrating. Thank you @Mauri for correcting my error.

Here’s another link which covers both GUIText and GUITexture:

Standard Assets bug fix in 2019.3.0f6: Unity3D - Reddit

  • Add using UnityEngine.UI; to the top of your script (under e.g. using UnityEngine;).
  • Replace every instance of public GUITexture with public Image.

UGUI Manual: Unity UI: Unity User Interface | Unity UI | 1.0.0
.

4 Likes