Posts

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. code before : using UnityEngine.EventSystems; namespace UnityStandardAssets.CrossPlatformInput { [RequireComponent(typeof(GUITexture))] code after : using UnityEngine.EventSystems; using UnityEngine.UI; namespace UnityStandardAssets.CrossPlatformInput { [RequireComponent(typeof(Image))]

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

Error ini dapat diatas dengan mengganti 'GUITexture' menjadi hanya 'Image'. Jangan lupa juga untuk mengimport UnityEngine.UI. kode sebelum : using UnityEngine.EventSystems; namespace UnityStandardAssets.CrossPlatformInput { [RequireComponent(typeof(GUITexture))] kode setelah : using UnityEngine.EventSystems; using UnityEngine.UI; namespace UnityStandardAssets.CrossPlatformInput { [RequireComponent(typeof(Image))]

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

This error can be fixed by changing 'GUIText' to 'Text'. Don't forget to import the UnityEngine.UI too. code before : using UnityEngine; namespace UnityStandardAssets.Utility { public class SimpleActivatorMenu : MonoBehaviour { public GUIText camSwitchButton; code after : using UnityEngine; using UnityEngine.UI; namespace UnityStandardAssets.Utility { public class SimpleActivatorMenu : MonoBehaviour { public Text camSwitchButton;

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;