- Home /
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/
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:
Go to this website and search for the character code you want.
Copy and paste the character from the webpage into the unity inspector.
I think characters above '\uFFFF' are not supported by c#. https://msdn.microsoft.com/en-us/library/aa664669(v=vs.71).aspx
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");
Your answer
![](https://koobas.hobune.stream/wayback/20220612223610im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Inspector button for custom class 1 Answer
Unity inspector scripting - scriptable objects - card game 0 Answers
How to properly handle Undo events in custom inspector? 0 Answers
How to assign a color shown in the "Color" window to a color field in the inspector? 6 Answers
Skybox - Render Settings vs on a Camera 0 Answers