• 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
1
Question by LEGEND383 · Jul 18, 2014 at 11:06 PM · textimage

Is it possible to add an icon in text?

I am creating a card game where the card text can contain icons (similar to the mana and tap symbols on Magic: The Gathering cards) and I have no idea as to how to get the image into the text. I plan on using a TextMesh object to display the card text, so if there is a way to add the icons to a TextMesh that would be preferable, however I am open to suggestions.

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 iwaldrop · Jul 19, 2014 at 03:25 AM 0
Share

Unity is about to release a new GUI system in the next few months. I would use that.

http://blogs.unity3d.com/2014/05/28/overview-of-the-new-ui-system/

http://blogs.unity3d.com/2014/06/30/unity-4-6-new-ui-world-space-canvas/

1 Reply

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

Answer by LEGEND383 · Jul 22, 2014 at 05:12 PM

After some more thinking and research, I found the quad tag in the rich text docs here that allows for exactly this functionality.

Comment
Add comment · Show 2 · 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 quicksly · Aug 04, 2017 at 05:16 PM 0
Share

I know... two year old post and such, but I have been looking for some working examples of how to use this quad 'cause that's also what I am trying to work with.

Unfortunately my icon comes out as some kind of jumbled mess.

avatar image MaxLohMusic · May 23 at 06:01 AM 0
Share

I'm unable to make it even try to render as a quad. With other tags such as color or italics it works as intended. But with "quad" it just renders it as the original literal text.

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

24 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 avatar image avatar image avatar image

Related Questions

How to display images on top of TileMap during runtime? 0 Answers

Multiple gui instantiation issues 0 Answers

Creating a Jeopardy style game, script's not working. 0 Answers

Image in label + string..? 1 Answer

Print char to a 2D image? 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