transform this 1/2

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
rauljl1
Posts: 55
Joined: Fri Apr 15, 2022 7:40 pm

transform this 1/2

Post by rauljl1 »

Hi, Tony.
I would like to know if there is any way to transform this: 1/2 to
1
-
2
Even 2^2 to a power expresion.
Everything related to mathematics.
Thanks!
User avatar
Tony Li
Posts: 21972
Joined: Thu Jul 18, 2013 1:27 pm

Re: transform this 1/2

Post by Tony Li »

Can you use the 1/2 Unicode character? ½

For exponents, you can use superscripts with TextMesh Pro, like: 10<sup>2</sup> for 10^2.
User avatar
rauljl1
Posts: 55
Joined: Fri Apr 15, 2022 7:40 pm

Re: transform this 1/2

Post by rauljl1 »

Yeah, but how to do it on a Dialogue Text??
User avatar
Tony Li
Posts: 21972
Joined: Thu Jul 18, 2013 1:27 pm

Re: transform this 1/2

Post by Tony Li »

Can't you just enter those in the Dialogue Text?

halfAndSuperscript.png
halfAndSuperscript.png (2.6 KiB) Viewed 324 times
User avatar
rauljl1
Posts: 55
Joined: Fri Apr 15, 2022 7:40 pm

Re: transform this 1/2

Post by rauljl1 »

<sup>2</sup> didn't work
User avatar
Tony Li
Posts: 21972
Joined: Thu Jul 18, 2013 1:27 pm

Re: transform this 1/2

Post by Tony Li »

Are you using TextMesh Pro? It's a TextMesh Pro-specific rich text tag. (See also: TextMesh Pro Support)
User avatar
rauljl1
Posts: 55
Joined: Fri Apr 15, 2022 7:40 pm

Re: transform this 1/2

Post by rauljl1 »

Ok. That works for me. Thanks!
User avatar
Tony Li
Posts: 21972
Joined: Thu Jul 18, 2013 1:27 pm

Re: transform this 1/2

Post by Tony Li »

Happy to help!
Post Reply