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 ina · May 07, 2011 at 03:47 AM · guitextidealign

set guiText component to bottom left corner of screen in IDE

are there options in the IDE to set the guitext component to a corner of the screen - rather than dead center? It seems the align options in the IDE only aligns based on a center box

Comment
Add comment · Show 2
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 Antony-Blackett · May 07, 2011 at 03:51 AM 0
Share

Is this in code or are you placing a guiText GameObject in the Unity editor?

avatar image ina · May 07, 2011 at 04:02 AM 0
Share

it's via the unity editor / ide

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Owen-Reynolds · May 07, 2011 at 05:39 AM

Transform X and Y position your GUIText, same as anything else. Two tricks:

o You have to be in GameView to see it (don't have to be running, just not in SceneView)

o It uses ViewPort coords, which is (0,0) at bottom left and (1,1) at top right of the screen. Think of them as screen size percents. The camera has no effect on this -- you are placing it on the screen. If you set transform x,y to (0,0) and set anchor to LowerLeft, you'll get dead-on bottom-left.

NOTE: z is used, but only for which GUI elements are "on top"

Comment
Add comment · Show 4 · 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
avatar image Eric5h5 · May 07, 2011 at 06:03 AM 1
Share

You can see GUIText in the scene view if you toggle on the game elements in the scene view control bar.

avatar image ina · May 07, 2011 at 06:52 AM 0
Share

Is there a way to enter these xy position coordinates inside the editor, ins$$anonymous$$d of setting transform.x etc by script?

avatar image Eric5h5 · May 07, 2011 at 07:21 AM 1
Share

@ina: the same way you always do.

avatar image ina · May 07, 2011 at 07:31 AM 0
Share

ah i see! the xyz are normalized for guitext!

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

No one has followed this question yet.

Related Questions

GUITextures not lining up correctly 2 Answers

GUI Text Showing Gameobjects information 3 Answers

Style dynamically created GUI Text 0 Answers

Gizmo-like GUi text? 2 Answers

Popup Box Description OnMouseOver 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