Unity报错Assets\Standard Assets\Utility\ForcedReset.cs(6,27): error CS0619: 'GUITexture' is obsolete:

using UnityEngine.UI;	//追加

//[RequireComponent(typeof (GUITexture))]
[RequireComponent(typeof(Image))]		//改
using UnityEngine.UI;		//追加

namespace UnityStandardAssets.Utility
{
    public class SimpleActivatorMenu : MonoBehaviour
    {
        // An incredibly simple menu which, when given references
        // to gameobjects in the scene
        //public GUIText camSwitchButton;
        public Text camSwitchButton;		//改
        public GameObject[] objects;


        private int m_CurrentActiveObject;

你可能感兴趣的:(Unity)