when i try use this code JAVAScript unity 5.1 : healthtext.guiText.text ="health :" + health;
I'm getting this error but it working on unity 4.6.7
BCE0144: 'UnityEngine.Component.guiText' is obsolete. Property guiText has been deprecated. Use GetComponent() instead. (UnityUpgradable)
i tried like this but its not working. anyone get help?
healthtext.GetComponent("health :") + health;
↧