- Home /
GUIText obsolete
Hi. Please somebody who fixes this little bug, it is a shame that it still appears when downloading standard assets. https://answers.unity.com/questions/1638555/guitexture-adn-guitext-are-obsolete-standard-asset.html
Answer by GDGames0302 · Feb 15, 2021 at 03:10 PM
Hi. Double click the error in the console and it will open the script at the line that gives the error. There, change the GUIText to Text, because GUIText is deprecated and UnityStandardAssets are not updated(Anyway, UnityStandardAssets are a great help and Thank You Unity for offering them). Hope it helps.
Also I'd like to clear something up here. Yes, Unity Technologies does provides certain StandardAssets which can be used, however just because some asset is located in the StandardAssets folder, does not mean it's actually an asset created by Unity. You and anyone else can also create such assets and share them and that's what most of the time is happening. The StandardAssets folder is just a special folder which is compiled seperately and before your normal assets. So you generally have assets in that folder that never or rarely ever change. This speeds up the update / reimport of scripts as long as nothing in this folder changes.
So when you "download" some standard assets from "somewhere" you should pay attention who actually made them, where they are hosted and when they were last updated. The GUIText component is deprecated for, idk, 9+ years (I think that's still not enough). It has been superseeded with several UI frameworks since then. In the very beginning there was the GUIText component. After than we got the I$$anonymous$$GUI system (OnGUI()). After that we got the component based uGUI (Canvas, UnityEngine.UI). After that now we got an additional system (UnityEngine.UIElements). You get an overview over the currently available systems over here.
So if you use an asset that still uses the GUIText component it's probably 9+ years old
Yes, you're right. The real purpose of my post is to avoid the annoying debug log error message that appears everytime anyperson downloads those assets, that's all. It would be great if it were fixed. If not, it's ok anyway. Thanks for your attention..
Your answer