- Home /
Subscripts and superscripts in Unity new GUI
Is it possible to display subscripts or superscripts in the new GUI system?
Comment
Answer by wedahada · Oct 31, 2015 at 12:44 PM
Try using unicode. For example, "\u207F" is superscript of n, and "\u2091" is subscript of e.
Answer by MrFaust · Jun 14, 2016 at 06:31 AM
You can do that from the script. An example from my project: gText.text= string.Format("g = {0:F1} m/s²", mass); You may copy and paste (O₂) or (O²) inside the " " and then customize it.