Replacing GUIText with the new Text UI in Unity 5.x
Starting in version 4.6, Unity started deprecating the use of the old GUIText UI in favor of their new UGUI. However, there are some changes that need to be made to any scripts that use the new UI. Below, I’ll use Chapter 28 – Apple Picker as an example, and you should be able to expand it to fit the other instances of GUIText in the book.
To start off, you can see the documentation for the new UGUI here. The new system is far more robust than the old one, however that also means it’s a bit more complex.
In the PDF linked below, I’ve replaced the pages of Chapter 28 that dealt with GUIText with new pages that show how to use the UGUI Text component instead.