x


Superscript in GUI Text

It is possible to add superscript to a GUI text? For example I need to say Square Feet (ft^2) or Cubic Kilometers (km^3) etc.

Thank you!

more ▼

asked Sep 15 '10 at 07:00 PM

Monica Knutson gravatar image

Monica Knutson
1 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

While Unity GUI has no support for different fonts/styles in a single text, this specific case can be solved by using the appropriate Unicode superscript characters, Like this: ft, km.

You just have to use a font which includes those characters, or, if you are using Unity 3, use dynamic font rendering.

more ▼

answered Sep 16 '10 at 07:32 AM

jonas echterhoff gravatar image

jonas echterhoff ♦♦
9.8k 7 23 104

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3688
x553
x313
x2

asked: Sep 15 '10 at 07:00 PM

Seen: 1541 times

Last Updated: Sep 15 '10 at 07:00 PM