Hello Guest

Author Topic: inline text formatting?  (Read 3929 times)

Sundaerae

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 25
    • View Profile
inline text formatting?
« on: December 12, 2013, 09:58:42 am »
Is it possible to do this by any means possible (GUIText / 3D Text / TextMesh)?

since from what I see, when you change the formatting, you change it for the whole object, not part of it.
The content of the text will change dynamically (it's for conversation, not static UI)
Thanks!
« Last Edit: December 12, 2013, 10:00:14 am by Sundaerae »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: inline text formatting?
« Reply #1 on: December 12, 2013, 11:58:33 pm »
You can change the text colour inline, but not the bold stuff with the tk2d Text mesh. Bold works with Unity text meshes and GUIText, I believe.

Sundaerae

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: inline text formatting?
« Reply #2 on: December 13, 2013, 08:26:03 am »
the main problem I found is the bold or italic parameter are always applied to the whole text, and not only a word or two.
how do I find:
-character height that is used in a textmesh (and also line spacing)?
-how many character it will fit if I have a TextMesh with x pixels/meters as width?
I'm thinking of just create several TextMesh and rearrange them so it would look like 1 big TextMesh, but actually compromised of several small TextMesh.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: inline text formatting?
« Reply #3 on: December 13, 2013, 11:03:13 am »
I can't help you with the unity text mesh object as I don't use it. You're probably better off asking on answers.unity3d or some place like that for that. as far as I remember though, it was possible to use html-like formatting in there...