Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Dec 22, 2014 at 04:25 PM by Josh Naylor for the following reason:

Other - more specifics about certain problems. Not how do i do everything.

avatar image
0
Question by ThePredat0r · Dec 21, 2014 at 09:55 AM · guitextunity 4.6

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 ?

Comment
Comments Locked
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

  • Sort: 
avatar image
0
Best Answer

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:

https://www.youtube.com/watch?v=D6ggcMdm9_4

Comment
Comments Locked · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges