How to Fix 'GUITexture' is obsolete: 'GUITexture has been removed. Use UI.Image instead.' - Unity Error
This error can be fixed by changing 'GUITexture' to 'Image'. Don't forget to import UnityEngine.UI too.
using UnityEngine.EventSystems;
namespace UnityStandardAssets.CrossPlatformInput
{
[RequireComponent(typeof(GUITexture))]
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace UnityStandardAssets.CrossPlatformInput
{
[RequireComponent(typeof(Image))]
Comments
Post a Comment