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 Nodrap · Dec 14, 2011 at 12:24 PM · textcolorfontcolourgui.label

Rotated multi-coloured text

I am trying to draw multi-coloured text at an arbitrary angle. I can draw coloured text using the material replacement and special shader trick but the only solution for drawing rotated text that I could find was to use GUI.Label in the OnGUI call (and modify the GUI.matrix) but this is limited. It allows me to change the styles colour but not the shader or material.

Comment
Add comment · Show 1
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 flamy · Dec 14, 2011 at 12:40 PM 0
Share

if u r using GUI.Label, it is jus a text it doesnt have material or shared tht could be applied.. btw u can get the same effect u r looking for with GUI.matrix's http://unity3d.com/support/documentation/ScriptReference/$$anonymous$$atrix4x4.SetTRS.html function

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Jessy · Dec 14, 2011 at 03:29 PM

http://unity3d.com/support/documentation/Components/class-TextMesh.html

Comment
Add comment · Show 12 · 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 flamy · Dec 14, 2011 at 03:38 PM 0
Share

yup this will make it easy.. if ur camera moves, make the text mesh child of camera!!

avatar image Nodrap · Dec 14, 2011 at 03:56 PM 0
Share

$$anonymous$$y game is actually 2D and I use GUI.Label and GUI.DrawTexture to draw pretty much everything. This unfortunately means that to sort things into this scene I need to also use the same method throughout. Adding 3D elements now won't sort between or in front of these items. It's also going to be an Android game and so I need it as fast as possible.

avatar image Jessy · Dec 14, 2011 at 04:06 PM 0
Share

If you're using Unity, your game is not "2D". Unity GUI is made of meshes with shaders, just like Text $$anonymous$$eshes. Unity GUI is also very slow, hence the new GUI system being worked on, so you probably should rethink your approach.

avatar image flamy · Dec 14, 2011 at 04:19 PM 0
Share

even im working on 2d games in android and iphone, i usually go for Plane(1x1 plane not the unity default) with texture on it for most part of the game, it works fine and flexible for almost everythin i want to do!

also making a game completly in GUI would sometime cause performance issues (even i faced it early) depending upon the game, because ONGUI would em called when ever there is a change in the GUI, so sometimes it goes upto 4 times called again and again (in my case)

avatar image Jessy · Dec 14, 2011 at 11:23 PM 1
Share

http://forum.unity3d.com/threads/115455-Unlit-with-adjustable-Alpha It would have been easy to search for my name on the forum, though. ;-P

Show more comments

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

Replacing transparency of text with a solid color? 1 Answer

Text Changes to Black 7 Answers

Text/font color 3 Answers

How do I change the font and color of GUI text? 1 Answer

Why does my 3d text keep turning white? 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