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 Codeseer · Mar 14, 2012 at 12:22 PM · guitexture2dguitextparticle emitter

Why is text so boring in Unity?!

Hi I was wondering if there was a way in unity to make the GUIText more exciting.

Basically I want to have a GUIText grow and fade out after being created.(Much like a particle)

The only solution I have found is to import a bunch of different fonts and make them a slightly larger than the last and slightly change the color. Then in a script change the font of the GUIText to the different imported fonts over time. This method seems uneloquent and overall just ugly. Plus it is not as smooth as particle effects.

Is there something I am missing? How can I animate GUIText so it is pretty/smooth? Also if this is not possible I have come up with another solution. Which is to make a script which will accept a string as input and spit out a Texture2D which is a compilation of Texture2Ds that correspond to the letters/numbers in the string.

 public Texture2D letterA;
 public Texture2D letterB;
 etc ...

a basic psudocode of how i expect this would be done would be

 Texture2D.PackTexture(myArrayOfLetters,2)

or something of that nature.

then I would set the texture for a particle emitter to that Texture2D produced by my script. Also the particle emitter would only generate one particle.

Anyways this is my issue I would love to be corrected because then I would not have to code the whole PackTexture solution.

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
3
Best Answer

Answer by Eric5h5 · Mar 14, 2012 at 12:59 PM

Text is only as boring as you make it. GUIText objects are GameObjects and as such can be animated the same way as any other objects, including position, scale, and material. (Keeping in mind they use viewport coordinates rather than world coordinates, and can't be rotated, though you could potentially use 3DText instead.) Importing a font at a bunch of different sizes is definitely the wrong thing to do.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Non-uniform scale textures in GUI 1 Answer

Check if GUI is Pressed 1 Answer

GUI Text Component Rotate ? 1 Answer

My OnGUI() Won't show the Button elements :( 0 Answers

How to change font size in ongui function 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