Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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
4
Question by Rafes · Sep 24, 2011 at 10:14 PM · editorbuttoninspectorunicode

Is there any way to display unicode characters?

In C#, there are Unicode escape characters but when I pass them to a button, for example, the result is blank. How is this done?

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

3 Replies

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

Answer by Rafes · Sep 24, 2011 at 10:16 PM

I figured it out! Note the single quotes are required...

             char upArrow = '\u25B2';
             GUILayout.Button(upArrow.ToString());

It seems to render the Unicode character slightly off to the right though.

Here is a nice listing of available characters: http://www.unicode.org/charts/

Comment
Add comment · Show 1 · 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 sriram90 · Jun 11, 2014 at 01:21 PM 0
Share

Nice found ... Thanks dude :)

avatar image
6

Answer by Baintastic · Oct 17, 2016 at 07:04 PM

If you want to use the inspector to set unicode characters (for example if you wanted to use font-awesome and actually see the icons when the game isn't running), you follow these steps:

  1. Go to this website and search for the character code you want.

  2. Copy and paste the character from the webpage into the unity inspector.

text selected


2016-10-17-13h57-03.png (27.1 kB)
Comment
Add comment · Show 1 · 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 luislodosm · Mar 25, 2017 at 01:04 AM 1
Share

I think characters above '\uFFFF' are not supported by c#. https://msdn.microsoft.com/en-us/library/aa664669(v=vs.71).aspx

avatar image
0

Answer by ow3n · Sep 29, 2020 at 04:49 PM

These can also be used in the console, but as @luislodosm points out characters above \uFFFF are not supported:

 Debug.Log ( "\u2665".ToString () + " Text after symbol");


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

Inspector button for custom class 1 Answer

GameObject position not matching up to its position in the inspector even though they are clearly linked [answered] 1 Answer

Insert new custom class element with _default_ values to a SerializedProperty array? 1 Answer

How do I make a box in inspector appear that allows me to call functions in scripts similar to OnClick on Buttons? 2 Answers

Create inspector drop-down button based on the content of a list in editor mode 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