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 /
avatar image
0
Question by Kawalyn · Apr 08, 2015 at 11:06 AM · textcanvasunityui

GUIText does not display anything

Hey guys and gurls!

I just started out learning C# in Unity, my prior scripting expirience being only Java.

I built the Rolling Ball tutorial project and everything was working well, i actually felt like C# is quite similar to what i already know from Java.

Now i ran into trouble when trying to display something with a GUIText and couldn't find my error for more than an hour.

First: Creating Text with the UI-Text-Script thingy works fine. The text is displayed, it only behaves odd when i try to put it into the top left corner. When i drag it up there on the canvas in the scene view, it still doesnt show up right in the corner when i test the game fullscreen.

Working with the GUIText does not work at all. I have the GUILayer enabled on my Main Camera. I created an empty object and added the GUIText as a component. Now when i reset the transform, write some text, change the font to Arial and the size to 12, it still doesn't display anything at all.

The goal is to get something that says "Count: x" with x being a number delivered from a script. But i cant get the GUI to display anything in the first place :(

Did someone run into that problem already and has a workaround? I'd be extremly pleased as i want to fix that issue before moving on to more complex stuff.

Thanks in advance!

Best, Kawa

Comment
Add comment
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

· Add your reply
  • Sort: 
avatar image
0

Answer by Kawalyn · Apr 09, 2015 at 11:44 AM

Thanks Dota, i already figured out what thr problem was. I am not on my PC right now, but i definitly used the GUIText thingy not unter the canvas.

The problem was that 1) i had the GUI thingy as a child of an empty game object whose coordinates were somewhere at -600/80/-200... you name it ;) 2) i had to render the scene ones for some reason (i guess it had to go through the script onces before displying it?

3) it didnt show up when i used 0/0 in the coordinates, while i thought that this was the bottom left corner. 1/1 didnt work either... but everything in between like 0.5/0.5 and even 0/1 worked.

Thanks for the help anyway, have a nice day :)

Comment
Add comment · 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

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Canvas Button persistence 0 Answers

Text smaller on higher resolution screen than on lower resolution screen 1 Answer

How To Show 2d Text After Collision (3D Game btw) 0 Answers

unity UI rectTransform and Canvas 1 Answer

Finding a GameObject using a canvas text? 2 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