Cara Mengatasi Error 'GUIText' is obsolete: 'GUIText has been removed. Use UI.Text instead.' - Unity Error

Error ini dapat diatas dengan mengganti 'GUIText' menjadi hanya 'Text'. Jangan lupa juga untuk mengimport UnityEngine.UI.

kode sebelum :
		
using UnityEngine;

namespace UnityStandardAssets.Utility
{
    public class SimpleActivatorMenu : MonoBehaviour
    {
        public GUIText camSwitchButton;
		
	
kode setelah :
		
using UnityEngine;
using UnityEngine.UI;

namespace UnityStandardAssets.Utility
{
    public class SimpleActivatorMenu : MonoBehaviour
    {
        public Text camSwitchButton;
		
	

Comments

Popular posts from this blog

Cara Mengatasi Error 'GUITexture' is obsolete: 'GUITexture has been removed. Use UI.Image instead.' - Unity Error

How to Fix 'GUITexture' is obsolete: 'GUITexture has been removed. Use UI.Image instead.' - Unity Error