- Home /
Other - more specifics about certain problems. Not how do i do everything.
How can I add the GUI texts in the "Roll-A-Ball" game in Unity 4.6 ?
Hello !, SO guys I am totally new to unity, and so to get hold of the engine I thought of starting off with the basic unity tutorials they got in this site. So far done with the project until the text part.... Here's the link to the part of that tutorial,
Displaying text in the game unity tutorial
I did what I was told and yes I add the "CountText" and I put the script into it and it works, not 100% but it works, It fails to initialize the text so when I play it always say "Count Text" instead of "Count : 0" but the count variable refreshes in the script(weird), and then I thought "Oh man screw that" and changed the text from the UI to "Count : 0"(which was "Count Text"), problem solved( atleast temporarily) then tried to add the next GUIText I get the error message from Unity saying "Cant add the same component multiple times !"
How can I fix these two problems ?
Answer by RogerGu · Dec 22, 2014 at 04:22 PM
That tutorial does not cover the changes in 4.6. There is a nice tutorial here that talks about how to use the Canvas, and a Text. At the end of the video he covers scripting and how to update the text:
Follow this Question
Related Questions
Problem at adding GUIText on unity4.6 2D Project 1 Answer
How to make a counter in GUI ? 5 Answers
How can I enable and disable scripts at runtime? 2 Answers
Error: not a member of 'UnityEngine.GameObject[]'. 2 Answers
Overload Method problem 0 Answers