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 TomMakesGames · Mar 24, 2014 at 10:55 AM · 2dtextrenderguitext

GUIText in 2D project is not rendering anywhere

Hi there,

I have some GUIText that I want to place in a scene. It's not rendering. Project is a 2D project.

Camera has GUILayer.

GUIText is in front of camera/in view of camera.

GUIText has size and content to show.

GUIText renders in Game view at default creation location, but disappears from GAme view when I move it. At no point does it render in Scene view.

How do I get the GUIText to render in the Scene view so I can place it properly, and have it show in Game view? Or am I using the wrong object for this task?

Comment
Add comment · Show 5
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
avatar image Destran · Mar 24, 2014 at 11:00 AM 0
Share

As far as I know you can never see GUIText in Scene view, it's more like an emptygameobject in that it is represented by the 3 vector arrows. As far as placing it, in it's transform I believe it takes x/y positions ranging from 0 to 1. so if you do (.5,.5,0) it will be centered in game view.

avatar image TomMakesGames · Mar 24, 2014 at 01:04 PM 0
Share

That's the impression that I got. But it doesn't render in Game view either - hence my problem (rather than just inconvenience).

avatar image robertbu · Mar 24, 2014 at 03:23 PM 0
Share

If while looking at the game view, you do: GameObject > Create Other > GUIText does it show? If so then your problem is likely one of coordinates. That is GUIText lives in Viewport coordinates not world coordinates. Typically you want to position a GUIText object between (0,0) and (1,1).

avatar image TomMakesGames · Mar 24, 2014 at 04:09 PM 0
Share

Aha! Yes you're right Robertu! I see your point.

How then, can I use the translation handles in the scene view to position it properly? Or am I trying to do the impossible? If so, is putting new values into script and then running to check the only way forward?

avatar image robertbu · Mar 24, 2014 at 04:43 PM 0
Share

I'm not sure why you have to run it. You should be able to click on the Game tab or select 'Game' from the 'Window' menu to see the Game view at edit time. In the inspector, if you click and hold just to the left of the input field, you can slid your cursor left and right to change the value. This can be a quick way to get an object close to the correct position.

0 Replies

· Add your reply
  • Sort: 

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

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

UI Text won't appear at all. 1 Answer

How to create a review of previous updates 1 Answer

How to detect button presses and change child object text in the button's Parent Object script 0 Answers

how i can write a text from another code ? 2 Answers

Gui text, ammo counter 1 Answer


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